-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (42 loc) · 1.59 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
language: d
##todo use some specific version of dmd/ldc, but also latest and nightly (this is gonna be a huge matrix)
jobs:
include:
- os: linux
dist: xenial
d: dmd
env: CI_CONTEXT=xenial_dmd
- os: linux
dist: bionic
d: dmd
env: CI_CONTEXT=bionic_dmd
- os: osx
d: dmd
env: CI_CONTEXT=osx_dmd
- os: linux
dist: xenial
d: ldc
env: CI_CONTEXT=xenial_ldc
- os: linux
dist: bionic
d: ldc
env: CI_CONTEXT=bionic_ldc
- os: osx
d: ldc
env: CI_CONTEXT=osx_ldc
install:
- "./clean.sh"
- "dub run glue-d:codescan --config=indexer --compiler=${DC}"
- "dub run --config=indexer --compiler=${DC}"
#todo in setups other than xenial/dmd there is no point in using -b unittest-cov
script:
- "dub test glue-d:annotations -b unittest-cov --compiler=${DC}"
- '[ "$CI_CONTEXT" == "xenial_dmd" ] && bash <(curl -s https://codecov.io/bash) -c -F annotations || exit 0;'
- "dub test glue-d:codescan -b unittest-cov --compiler=${DC}"
- '[ "$CI_CONTEXT" == "xenial_dmd" ] && bash <(curl -s https://codecov.io/bash) -c -F codescan || exit 0;'
- "dub test glue-d:logging -b unittest-cov --compiler=${DC}"
- '[ "$CI_CONTEXT" == "xenial_dmd" ] && bash <(curl -s https://codecov.io/bash) -c -F logging || exit 0;'
- "dub test glue-d:utils -b unittest-cov --compiler=${DC}"
- '[ "$CI_CONTEXT" == "xenial_dmd" ] && bash <(curl -s https://codecov.io/bash) -c -F utils || exit 0;'
- "dub test -b unittest-cov --compiler=${DC}"
- '[ "$CI_CONTEXT" == "xenial_dmd" ] && bash <(curl -s https://codecov.io/bash) -c -F core || exit 0;'