This repository was archived by the owner on Jun 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy path.travis.yml
More file actions
313 lines (290 loc) · 12.2 KB
/
.travis.yml
File metadata and controls
313 lines (290 loc) · 12.2 KB
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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
language: cpp
sudo: false
cache:
- ccache
- apt
matrix:
include:
- os: linux
compiler: clang
services: docker
script:
- docker run -v `pwd`:/build -v $HOME/.ccache:/ccache spidernode
sh -c "
export CC=\"ccache clang\" CXX=\"ccache clang++\";
./configure --engine=spidermonkey &&
make V= -C out BUILDTYPE=Release;
./deps/spidershim/scripts/run-tests.py
"
env: BUILD_CONFIG=normal
- os: linux
compiler: clang
services: docker
script:
- docker run -v `pwd`:/build -v $HOME/.ccache:/ccache spidernode
sh -c "
export CC=\"ccache clang\" CXX=\"ccache clang++\";
./configure --engine=spidermonkey --debug &&
make V= -C out BUILDTYPE=Debug;
./deps/spidershim/scripts/run-tests.py
"
env: BUILD_CONFIG=normal ENABLE_DEBUG=true
- os: linux
compiler: gcc-4.9
services: docker
script:
- docker run -v `pwd`:/build -v $HOME/.ccache:/ccache spidernode
sh -c "
export CC=\"ccache gcc-4.9\" CXX=\"ccache g++-4.9\";
./configure --engine=spidermonkey &&
make V= -C out BUILDTYPE=Release;
./deps/spidershim/scripts/run-tests.py
"
env: BUILD_CONFIG=normal
- os: linux
compiler: gcc-4.9
services: docker
script:
- docker run -v `pwd`:/build -v $HOME/.ccache:/ccache spidernode
sh -c "
export CC=\"ccache gcc-4.9\" CXX=\"ccache g++-4.9\";
./configure --engine=spidermonkey --debug &&
make V= -C out BUILDTYPE=Debug;
./deps/spidershim/scripts/run-tests.py
"
env: BUILD_CONFIG=normal ENABLE_DEBUG=true
- os: linux
compiler: gcc-5
services: docker
script:
- docker run -v `pwd`:/build -v $HOME/.ccache:/ccache spidernode
sh -c "
export CC=\"ccache gcc\" CXX=\"ccache g++\";
./configure --engine=spidermonkey &&
make V= -C out BUILDTYPE=Release;
./deps/spidershim/scripts/run-tests.py
"
env: BUILD_CONFIG=normal
- os: linux
compiler: gcc-5
services: docker
script:
- docker run -v `pwd`:/build -v $HOME/.ccache:/ccache spidernode
sh -c "
export CC=\"ccache gcc\" CXX=\"ccache g++\";
./configure --engine=spidermonkey --debug &&
make V= -C out BUILDTYPE=Debug;
./deps/spidershim/scripts/run-tests.py
"
env: BUILD_CONFIG=normal ENABLE_DEBUG=true
- os: linux
compiler: clang
services: docker
script:
- docker run -v `pwd`:/build -v $HOME/.ccache:/ccache spidernode
sh -c "
export CC=\"ccache clang\" CXX=\"ccache clang++\";
./configure --engine=spidermonkey --enable-gczeal &&
make V= -C out BUILDTYPE=Release;
export JS_GC_MAX_ZEAL=1;
./deps/spidershim/scripts/run-tests.py
"
env: BUILD_CONFIG=gczeal
- os: linux
compiler: clang
services: docker
script:
- docker run -v `pwd`:/build -v $HOME/.ccache:/ccache spidernode
sh -c "
export CC=\"ccache clang\" CXX=\"ccache clang++\";
./configure --engine=spidermonkey --debug --enable-gczeal &&
make V= -C out BUILDTYPE=Debug;
export JS_GC_MAX_ZEAL=1;
./deps/spidershim/scripts/run-tests.py
"
env: BUILD_CONFIG=gczeal ENABLE_DEBUG=true
- os: linux
compiler: clang
services: docker
script:
- docker run -v `pwd`:/build -v $HOME/.ccache:/ccache spidernode
sh -c "
export CC=\"ccache clang\" CXX=\"ccache clang++\";
./configure --engine=spidermonkey --enable-asan &&
make V= -C out BUILDTYPE=Release;
./deps/spidershim/scripts/run-tests.py
"
env: BUILD_CONFIG=normal ENABLE_ASAN=true
- os: linux
compiler: clang
services: docker
script:
- docker run -v `pwd`:/build -v $HOME/.ccache:/ccache spidernode
sh -c "
export CC=\"ccache clang\" CXX=\"ccache clang++\";
./configure --engine=spidermonkey --debug --enable-asan &&
make V= -C out BUILDTYPE=Debug;
./deps/spidershim/scripts/run-tests.py
"
env: BUILD_CONFIG=normal ENABLE_ASAN=true ENABLE_DEBUG=true
- os: linux
compiler: clang
services: docker
script:
- docker run -v `pwd`:/build -v $HOME/.ccache:/ccache spidernode
sh -c "
export CC=\"ccache clang\" CXX=\"ccache clang++\";
mkdir /tmp/sm; BUILDTYPE=Release ./deps/spidershim/scripts/build-spidermonkey.sh /tmp/sm;
./configure --engine=spidermonkey --with-external-spidermonkey-release=/tmp/sm &&
make V= -C out BUILDTYPE=Release;
./deps/spidershim/scripts/run-tests.py
"
env: BUILD_CONFIG=normal EXTERNAL_SPIDERMONKEY=true
- os: linux
compiler: clang
services: docker
script:
- docker run -v `pwd`:/build -v $HOME/.ccache:/ccache spidernode
sh -c "
export CC=\"ccache clang\" CXX=\"ccache clang++\";
mkdir /tmp/sm; BUILDTYPE=Debug ./deps/spidershim/scripts/build-spidermonkey.sh /tmp/sm;
./configure --engine=spidermonkey --debug --with-external-spidermonkey-release=/tmp/sm --with-external-spidermonkey-debug=/tmp/sm &&
make V= -C out BUILDTYPE=Debug;
./deps/spidershim/scripts/run-tests.py
"
env: BUILD_CONFIG=normal ENABLE_DEBUG=true EXTERNAL_SPIDERMONKEY=true
- os: linux
compiler: gcc-4.9
services: docker
script:
- docker run -v `pwd`:/build -v $HOME/.ccache:/ccache spidernode
sh -c "
export CC=\"ccache gcc-4.9\" CXX=\"ccache g++-4.9\";
mkdir /tmp/sm; BUILDTYPE=Release ./deps/spidershim/scripts/build-spidermonkey.sh /tmp/sm;
./configure --engine=spidermonkey --with-external-spidermonkey-release=/tmp/sm &&
make V= -C out BUILDTYPE=Release;
./deps/spidershim/scripts/run-tests.py
"
env: BUILD_CONFIG=normal EXTERNAL_SPIDERMONKEY=true
- os: linux
compiler: gcc-4.9
services: docker
script:
- docker run -v `pwd`:/build -v $HOME/.ccache:/ccache spidernode
sh -c "
export CC=\"ccache gcc-4.9\" CXX=\"ccache g++-4.9\";
mkdir /tmp/sm; BUILDTYPE=Debug ./deps/spidershim/scripts/build-spidermonkey.sh /tmp/sm;
./configure --engine=spidermonkey --debug --with-external-spidermonkey-release=/tmp/sm --with-external-spidermonkey-debug=/tmp/sm &&
make V= -C out BUILDTYPE=Debug;
./deps/spidershim/scripts/run-tests.py
"
env: BUILD_CONFIG=normal ENABLE_DEBUG=true EXTERNAL_SPIDERMONKEY=true
- os: linux
compiler: gcc-5
services: docker
script:
- docker run -v `pwd`:/build -v $HOME/.ccache:/ccache spidernode
sh -c "
export CC=\"ccache gcc\" CXX=\"ccache g++\";
mkdir /tmp/sm; BUILDTYPE=Release ./deps/spidershim/scripts/build-spidermonkey.sh /tmp/sm;
./configure --engine=spidermonkey --with-external-spidermonkey-release=/tmp/sm &&
make V= -C out BUILDTYPE=Release;
./deps/spidershim/scripts/run-tests.py
"
env: BUILD_CONFIG=normal EXTERNAL_SPIDERMONKEY=true
- os: linux
compiler: gcc-5
services: docker
script:
- docker run -v `pwd`:/build -v $HOME/.ccache:/ccache spidernode
sh -c "
export CC=\"ccache gcc\" CXX=\"ccache g++\";
mkdir /tmp/sm; BUILDTYPE=Debug ./deps/spidershim/scripts/build-spidermonkey.sh /tmp/sm;
./configure --engine=spidermonkey --debug --with-external-spidermonkey-release=/tmp/sm --with-external-spidermonkey-debug=/tmp/sm &&
make V= -C out BUILDTYPE=Debug;
./deps/spidershim/scripts/run-tests.py
"
env: BUILD_CONFIG=normal ENABLE_DEBUG=true EXTERNAL_SPIDERMONKEY=true
- os: osx
compiler: clang
env: BUILD_CONFIG=normal MAKE_ARGS=-j2
- os: osx
compiler: clang
env: BUILD_CONFIG=normal ENABLE_DEBUG=true MAKE_ARGS=-j2
- os: osx
compiler: clang
env: BUILD_CONFIG=gczeal MAKE_ARGS=-j2
- os: osx
compiler: clang
env: BUILD_CONFIG=gczeal ENABLE_DEBUG=true MAKE_ARGS=-j2
- os: osx
compiler: clang
env: BUILD_CONFIG=normal EXTERNAL_SPIDERMONKEY=true MAKE_ARGS=-j2
- os: osx
compiler: clang
env: BUILD_CONFIG=normal ENABLE_DEBUG=true EXTERNAL_SPIDERMONKEY=true MAKE_ARGS=-j2
# Disabled for intermittently failing too many times.
# - os: osx
# compiler: clang-3.8
# osx_image: xcode7.3
# env: BUILD_CONFIG=normal ENABLE_ASAN=true MAKE_ARGS=-j2
# before_install:
# - wget http://llvm.org/releases/3.8.0/clang+llvm-3.8.0-x86_64-apple-darwin.tar.xz
# - tar xf clang+llvm-3.8.0-x86_64-apple-darwin.tar.xz
# - brew update
# - brew unlink autoconf
# - brew install autoconf@2.13
# - brew install yasm gawk ccache python
# install: export CC="$PWD/clang+llvm-3.8.0-x86_64-apple-darwin/bin/clang" CXX="$PWD/clang+llvm-3.8.0-x86_64-apple-darwin/bin/clang++"
- os: osx
compiler: clang-3.8
osx_image: xcode7.3
env: BUILD_CONFIG=normal ENABLE_ASAN=true ENABLE_DEBUG=true MAKE_ARGS=-j2
before_install:
- wget http://llvm.org/releases/3.8.0/clang+llvm-3.8.0-x86_64-apple-darwin.tar.xz
- tar xf clang+llvm-3.8.0-x86_64-apple-darwin.tar.xz
- brew update
- brew unlink autoconf
- brew install autoconf@2.13
- brew install yasm gawk ccache
install: export CC="$PWD/clang+llvm-3.8.0-x86_64-apple-darwin/bin/clang" CXX="$PWD/clang+llvm-3.8.0-x86_64-apple-darwin/bin/clang++"
before_install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then docker build -t spidernode -f deps/spidershim/scripts/Dockerfile deps/spidershim/scripts; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew unlink autoconf; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install autoconf@2.13 yasm ccache; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install llvm && export PATH="/usr/local/opt/llvm/bin:$PATH"; fi
after_install:
- if [ "$USE_CCACHE" == "true" ]; then export CC="`which ccache` $CC" CXX="`which ccache` $CXX"; fi
before_script:
- if [ "$USE_CCACHE" == "true" ]; then ccache -s; fi
- if [ "$TRAVIS_OS_NAME" == "osx" -a "$EXTERNAL_SPIDERMONKEY" == "true" ]; then mkdir /tmp/sm; BUILDTYPE=$(if [ "$ENABLE_DEBUG" == "true" ]; then echo 'Debug'; else echo 'Release'; fi) ./deps/spidershim/scripts/build-spidermonkey.sh /tmp/sm; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then ./configure $(if [ "$ENABLE_DEBUG" == "true" ]; then echo '--debug'; fi) --engine=spidermonkey $(if [ "$ENABLE_ASAN" == "true" ]; then echo "--enable-asan"; fi) $(if [ "$BUILD_CONFIG" == "gczeal" ]; then echo "--enable-gczeal"; fi) $(if [ "$EXTERNAL_SPIDERMONKEY" == "true" ]; then echo "--with-external-spidermonkey-debug=/tmp/sm --with-external-spidermonkey-release=/tmp/sm"; fi); fi
script:
- travis_wait 60 make V= $MAKE_ARGS -C out BUILDTYPE=$(if [ "$ENABLE_DEBUG" == "true" ]; then echo 'Debug'; else echo 'Release'; fi)
- if [ "$BUILD_CONFIG" == "gczeal" ]; then export JS_GC_MAX_ZEAL=1; fi
- ./deps/spidershim/scripts/run-tests.py
after_script:
- if [ "$USE_CCACHE" == "true" ]; then ccache -s; fi
notifications:
email:
recipients:
- tbsaunde+github@tbsaunde.org
- myk@mykzilla.org
on_success: always # [always|never|change] # default: change
on_failure: always # [always|never|change] # default: always
irc:
channels:
- "irc.mozilla.org#spidernode"
on_success: always # [always|never|change] # default: always
on_failure: always # [always|never|change] # default: always
template:
- "%{repository_slug} - %{commit_subject} - %{result} - %{build_url}"
use_notice: true
# We can do this if we remove the NO_EXTERNAL_MSGS flag (+n).
#skip_join: true
env:
global:
- LANG="en_US.UTF-8"
- CCACHE_COMPRESS=1
- USE_CCACHE="true"