forked from ldc-developers/ldc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
81 lines (79 loc) · 2.2 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
language: cpp
sudo: false
addons:
apt:
sources:
- llvm-toolchain-precise
- llvm-toolchain-precise-3.5
- llvm-toolchain-precise-3.6
- llvm-toolchain-precise-3.7
- ubuntu-toolchain-r-test
packages:
- libconfig++8-dev
- gcc-4.9
- g++-4.9
- gcc-4.9-multilib
- g++-4.9-multilib
- gcc-multilib
- g++-multilib
- linux-libc-dev:i386
- libcurl3:i386
- libedit2
- libedit-dev
- llvm-3.1
- llvm-3.1-dev
- llvm-3.2
- llvm-3.2-dev
- llvm-3.3
- llvm-3.3-dev
- llvm-3.4
- llvm-3.4-dev
- llvm-3.5
- llvm-3.5-dev
- llvm-3.6
- llvm-3.6-dev
- llvm-3.7
- llvm-3.7-dev
install:
- if [[ "${LLVM_CONFIG}" == *3\.[567]* ]]; then export CC="gcc-4.9"; export CXX="g++-4.9"; fi
env:
- LLVM_CONFIG="llvm-config-3.7"
- LLVM_CONFIG="llvm-config-3.6" OPTS="-DMULTILIB=ON"
- LLVM_CONFIG="llvm-config-3.5" OPTS="-DBUILD_SHARED_LIBS=ON"
- LLVM_CONFIG="llvm-config-3.4" OPTS="-DTEST_COVERAGE=ON"
- LLVM_CONFIG="llvm-config-3.3"
- LLVM_CONFIG="llvm-config-3.2"
- LLVM_CONFIG="llvm-config-3.1"
matrix:
allow_failures:
- env: LLVM_CONFIG="llvm-config-3.8"
script:
- cmake -DLLVM_CONFIG=$(which ${LLVM_CONFIG}) $OPTS .
- make -j3
# Outputs some environment info, plus makes sure we only run the test suite
# if we could actually build the executable.
- bin/ldc2 -version || exit 1
- MAKEOPTS=-j2 ctest -j1 --verbose -R "build-phobos2-" -E "-test-runner"
- ctest -j3 --verbose -R "(build-)" -E "(build-phobos2-|-test-runner)"
- CC="" MAKEOPTS=-j4 ctest -j1 --verbose -R "dmd-testsuite" -E "-debug"
- CC="" MAKEOPTS=-j4 ctest -j1 --verbose -R "dmd-testsuite-debug"
- ctest -j4 --output-on-failure -E "dmd-testsuite"
after_success:
-
if [[ "${OPTS}" == *TEST_COVERAGE*ON* ]]; then
coveralls -e runtime -e tests -e vcbuild --gcov gcov-4.9 --gcov-options '\-lp' > /dev/null 2>&1;
fi
notifications:
# Temporarily disabled due to time limit problems.
# email:
# recipients:
# - "[email protected]"
# on_success: never
# on_failure: change
irc:
channels:
- "irc.freenode.org#ldc"
on_success: always
on_failure: always
use_notice: false
skip_join: true