Enable dip1000, drop support for < 2.085.1, test on OSX
This commit is contained in:
parent
fe2447f71a
commit
7d47caa87d
42
.travis.yml
42
.travis.yml
|
@ -1,21 +1,35 @@
|
||||||
language: d
|
language: d
|
||||||
|
|
||||||
|
os:
|
||||||
|
- linux
|
||||||
|
- osx
|
||||||
|
|
||||||
|
# Order: oldest DMD, newest LDC, oldest LDC
|
||||||
|
# Latest DMD is in the matrix.include to give it the `COVERAGE` env variable
|
||||||
|
d:
|
||||||
|
- dmd-2.085.1
|
||||||
|
- ldc-1.19.0
|
||||||
|
- ldc-1.15.0
|
||||||
|
- dmd-nightly
|
||||||
|
- ldc-latest-ci
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- d: dmd-beta
|
# Last FE GDC is compatible with
|
||||||
- d: dmd-2.088.0
|
|
||||||
env: [COVERAGE=true]
|
|
||||||
- d: dmd-2.076.1
|
- d: dmd-2.076.1
|
||||||
- d: ldc-1.17.0
|
os: linux
|
||||||
- d: ldc-1.16.0
|
script: dub build
|
||||||
- d: ldc-1.15.0
|
- d: dmd-2.076.1
|
||||||
- d: ldc-1.14.0
|
os: osx
|
||||||
- d: ldc-1.6.0
|
script: dub build
|
||||||
- d: dmd-2.087.1
|
- d: dmd-2.090.0
|
||||||
- d: dmd-2.086.1
|
os: linux
|
||||||
- d: dmd-2.085.1
|
env: [COVERAGE=true]
|
||||||
- d: dmd-2.084.1
|
- d: dmd-2.090.0
|
||||||
|
os: osx
|
||||||
sudo: false
|
env: [COVERAGE=true]
|
||||||
|
allow_failures:
|
||||||
|
- d: dmd-nightly
|
||||||
|
- d: ldc-latest-ci
|
||||||
|
|
||||||
script: ./travis.sh
|
script: ./travis.sh
|
||||||
|
|
5
dub.sdl
5
dub.sdl
|
@ -3,3 +3,8 @@ description `A "tagged union" implementation with transparent operator forwardin
|
||||||
authors "Sönke Ludwig"
|
authors "Sönke Ludwig"
|
||||||
copyright "Copyright © 2015, Sönke Ludiwg"
|
copyright "Copyright © 2015, Sönke Ludiwg"
|
||||||
license "BSL-1.0"
|
license "BSL-1.0"
|
||||||
|
|
||||||
|
buildType "unittest" {
|
||||||
|
buildOptions "unittests" "debugMode" "debugInfo"
|
||||||
|
dflags "-preview=dip1000"
|
||||||
|
}
|
||||||
|
|
|
@ -943,7 +943,7 @@ unittest { // "in" operator
|
||||||
unittest { // issue #15 - by-ref return values
|
unittest { // issue #15 - by-ref return values
|
||||||
static struct S {
|
static struct S {
|
||||||
int x;
|
int x;
|
||||||
ref int getx() { return x; }
|
ref int getx() return { return x; }
|
||||||
}
|
}
|
||||||
static union U { S s; }
|
static union U { S s; }
|
||||||
alias TA = TaggedAlgebraic!U;
|
alias TA = TaggedAlgebraic!U;
|
||||||
|
|
Loading…
Reference in a new issue