Enable dip1000, drop support for < 2.085.1, test on OSX

This commit is contained in:
Geod24 2020-01-13 16:33:25 +09:00
parent fe2447f71a
commit 7d47caa87d
3 changed files with 34 additions and 15 deletions

View file

@ -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

View file

@ -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"
}

View file

@ -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;