-
Notifications
You must be signed in to change notification settings - Fork 29
/
.travis.yml
189 lines (174 loc) · 5.32 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
language: cpp
install:
# Ensure modern `node` and `npm` versions, otherwise Travis gives us `node v0.10.36` with `npm 1.4.28`.
# http://austinpray.com/ops/2015/09/20/change-travis-node-version.html
# https://stackoverflow.com/a/34384262/1346510
- export TRAVIS_NODE_VERSION="4"
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION
- if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi
# NOTE: In the `matrix` below, `${compiler} --version` is the command executed by Travis CI in 'language: cpp' mode.
# https://github.com/travis-ci/travis-build/blob/8067d586b03d5cde21b034e6fbcfa561f5c66748/lib/travis/build/script/cpp.rb#L20
matrix:
include:
- script:
- brew update
- brew install nasm
- make check
env:
- MAKE_CHECK=1
compiler: "native clang++, Job: make check"
os: osx
osx_image: xcode12.2
- script:
- brew update
- brew install nasm # Don't install `gnuplot`, it kills Travis and is unnecessary for the test.
- clang++ -v
- clang++ --version
- make individual_tests_1_of_3
env:
- NDEBUG=0
- TESTS=1_OF_3
compiler: "native clang++, Job: make individual_tests"
os: osx
osx_image: xcode12.2
- script:
- brew update
- brew install nasm # Don't install `gnuplot`, it kills Travis and is unnecessary for the test.
- clang++ -v
- clang++ --version
- make individual_tests_2_of_3
env:
- NDEBUG=0
- TESTS=2_OF_3
compiler: "native clang++, Job: make individual_tests"
os: osx
osx_image: xcode12.2
- script:
- brew update
- brew install nasm # Don't install `gnuplot`, it kills Travis and is unnecessary for the test.
- clang++ -v
- clang++ --version
- make individual_tests_3_of_3
env:
- NDEBUG=0
- TESTS=3_OF_3
compiler: "native clang++, Job: make individual_tests"
os: osx
osx_image: xcode12.2
- script:
- brew update
- brew install nasm # Don't install `gnuplot`, it kills Travis and is unnecessary for the test.
- clang++ -v
- clang++ --version
- make individual_tests_1_of_3
env:
- NDEBUG=1
- TESTS=1_OF_3
compiler: "native clang++, Job: make individual_tests"
os: osx
osx_image: xcode12.2
- script:
- brew update
- brew install nasm # Don't install `gnuplot`, it kills Travis and is unnecessary for the test.
- clang++ -v
- clang++ --version
- make individual_tests_2_of_3
env:
- NDEBUG=1
- TESTS=2_OF_3
compiler: "native clang++, Job: make individual_tests"
os: osx
osx_image: xcode12.2
- script:
- brew update
- brew install nasm # Don't install `gnuplot`, it kills Travis and is unnecessary for the test.
- clang++ -v
- clang++ --version
- make individual_tests_3_of_3
env:
- NDEBUG=1
- TESTS=3_OF_3
compiler: "native clang++, Job: make individual_tests"
os: osx
osx_image: xcode12.2
- script:
- mkdir local_bin
- ln -sf $(which g++-7) local_bin/g++
- ln -sf $(which clang++-6.0) local_bin/clang++
- export PATH=$PWD/local_bin:$PATH
- make check
env:
- MAKE_CHECK=1
compiler: "g++-7 && clang++-6.0, Job: make check"
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- clang-6.0
- libstdc++-7-dev
- nasm
- script: make individual_tests
env:
- NDEBUG=0
- CPLUSPLUS=g++-7
compiler: "g++-7, Job: make individual_tests"
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- nasm
- gnuplot
- script: make individual_tests
env:
- NDEBUG=0
- CPLUSPLUS=clang++-6.0
compiler: "clang++-6.0, Job: make individual_tests"
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test # `apt-get` on Travis fails to install `clang-3.6 gnuplot` w/o this.
packages:
- g++-7 # To install the dreaded `#include <codecvt>`.
- clang-6.0
- libstdc++-7-dev
- nasm
- gnuplot
- script: make individual_tests
env:
- NDEBUG=1
- CPLUSPLUS=g++-7
compiler: "g++-7, Job: make individual_tests"
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- nasm
- gnuplot
- script: make individual_tests
env:
- NDEBUG=1
- CPLUSPLUS=clang++-6.0
compiler: "clang++-6.0, Job: make individual_tests"
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test # `apt-get` on Travis fails to install `clang-3.6 gnuplot` w/o this.
packages:
- g++-7 # To install the dreaded `#include <codecvt>`.
- clang-6.0
- libstdc++-7-dev
- nasm
- gnuplot
notifications:
slack: currentio:e74oLGvcTRa0yJWg5Q6JjzCk