14 # Images used in testing PR and try-build should be run first.
15 - env: IMAGE=x86_64-gnu-llvm-3.9 RUST_BACKTRACE=1
16 if: type = pull_request OR branch = auto
18 - env: IMAGE=dist-x86_64-linux DEPLOY=1
19 if: branch = try OR branch = auto
21 # "alternate" deployments, these are "nightlies" but have LLVM assertions
22 # turned on, they're deployed to a different location primarily for
24 - env: IMAGE=dist-x86_64-linux DEPLOY_ALT=1
25 if: branch = try OR branch = auto
28 RUST_CHECK_TARGET=dist
29 RUST_CONFIGURE_ARGS="--enable-extended --enable-profiler"
32 RUSTC_RETRY_LINKER_ON_SEGFAULT=1
33 SCCACHE_ERROR_LOG=/tmp/sccache.log
34 MACOSX_DEPLOYMENT_TARGET=10.7
41 # macOS builders. These are placed near the beginning because they are very
44 # OSX builders running tests, these run the full test suite.
46 # Note that the compiler is compiled to target 10.8 here because the Xcode
47 # version that we're using, 8.2, cannot compile LLVM for OSX 10.7.
49 RUST_CHECK_TARGET=check
50 RUST_CONFIGURE_ARGS="--build=x86_64-apple-darwin --enable-sanitizers --enable-profiler"
52 RUSTC_RETRY_LINKER_ON_SEGFAULT=1
53 SCCACHE_ERROR_LOG=/tmp/sccache.log
54 MACOSX_DEPLOYMENT_TARGET=10.8
55 MACOSX_STD_DEPLOYMENT_TARGET=10.7
63 RUST_CHECK_TARGET=check
64 RUST_CONFIGURE_ARGS=--build=i686-apple-darwin
66 RUSTC_RETRY_LINKER_ON_SEGFAULT=1
67 SCCACHE_ERROR_LOG=/tmp/sccache.log
68 MACOSX_DEPLOYMENT_TARGET=10.8
69 MACOSX_STD_DEPLOYMENT_TARGET=10.7
76 # OSX builders producing releases. These do not run the full test suite and
77 # just produce a bunch of artifacts.
79 # Note that these are running in the `xcode7` image instead of the
80 # `xcode8.2` image as above. That's because we want to build releases for
81 # OSX 10.7 and `xcode7` is the latest Xcode able to compile LLVM for 10.7.
83 RUST_CHECK_TARGET=dist
84 RUST_CONFIGURE_ARGS="--build=i686-apple-darwin --enable-extended --enable-profiler"
87 RUSTC_RETRY_LINKER_ON_SEGFAULT=1
88 SCCACHE_ERROR_LOG=/tmp/sccache.log
89 MACOSX_DEPLOYMENT_TARGET=10.7
97 RUST_CHECK_TARGET=dist
98 RUST_CONFIGURE_ARGS="--target=aarch64-apple-ios,armv7-apple-ios,armv7s-apple-ios,i386-apple-ios,x86_64-apple-ios --enable-extended --enable-sanitizers --enable-profiler"
101 RUSTC_RETRY_LINKER_ON_SEGFAULT=1
102 SCCACHE_ERROR_LOG=/tmp/sccache.log
103 MACOSX_DEPLOYMENT_TARGET=10.7
105 NO_DEBUG_ASSERTIONS=1
110 # Linux builders, remaining docker images
111 - env: IMAGE=arm-android
113 - env: IMAGE=armhf-gnu
115 - env: IMAGE=dist-various-1 DEPLOY=1
117 - env: IMAGE=dist-various-2 DEPLOY=1
119 - env: IMAGE=dist-aarch64-linux DEPLOY=1
121 - env: IMAGE=dist-android DEPLOY=1
123 - env: IMAGE=dist-arm-linux DEPLOY=1
125 - env: IMAGE=dist-armhf-linux DEPLOY=1
127 - env: IMAGE=dist-armv7-linux DEPLOY=1
129 - env: IMAGE=dist-i586-gnu-i686-musl DEPLOY=1
131 - env: IMAGE=dist-i686-freebsd DEPLOY=1
133 - env: IMAGE=dist-i686-linux DEPLOY=1
135 - env: IMAGE=dist-mips-linux DEPLOY=1
137 - env: IMAGE=dist-mips64-linux DEPLOY=1
139 - env: IMAGE=dist-mips64el-linux DEPLOY=1
141 - env: IMAGE=dist-mipsel-linux DEPLOY=1
143 - env: IMAGE=dist-powerpc-linux DEPLOY=1
145 - env: IMAGE=dist-powerpc64-linux DEPLOY=1
147 - env: IMAGE=dist-powerpc64le-linux DEPLOY=1
149 - env: IMAGE=dist-s390x-linux DEPLOY=1
151 - env: IMAGE=dist-x86_64-freebsd DEPLOY=1
153 - env: IMAGE=dist-x86_64-musl DEPLOY=1
155 - env: IMAGE=dist-x86_64-netbsd DEPLOY=1
159 - env: IMAGE=i686-gnu
161 - env: IMAGE=i686-gnu-nopt
163 - env: IMAGE=wasm32-unknown
165 - env: IMAGE=x86_64-gnu
167 - env: IMAGE=x86_64-gnu-full-bootstrap
169 - env: IMAGE=x86_64-gnu-aux
171 - env: IMAGE=x86_64-gnu-tools
173 - env: IMAGE=x86_64-gnu-debug
175 - env: IMAGE=x86_64-gnu-nopt
177 - env: IMAGE=x86_64-gnu-distcheck
179 - env: IMAGE=x86_64-gnu-incremental
184 - SCCACHE_BUCKET=rust-lang-ci-sccache2
185 - SCCACHE_REGION=us-west-1
186 - AWS_ACCESS_KEY_ID=AKIAJAMV3QAMMA6AXHFQ
187 # AWS_SECRET_ACCESS_KEY=...
188 - secure: "j96XxTVOSUf4s4r4htIxn/fvIa5DWbMgLqWl7r8z2QfgUwscmkMXAwXuFNc7s7bGTpV/+CgDiMFFM6BAFLGKutytIF6oA02s9b+usQYnM0th7YQ2AIgm9GtMTJCJp4AoyfFmh8F2faUICBZlfVLUJ34udHEe35vOklix+0k4WDo="
191 - zcat $HOME/docker/rust-ci.tar.gz | docker load || true
192 - mkdir -p $HOME/rustsrc
193 # FIXME(#46924): these two commands are required to enable IPv6,
194 # they shouldn't exist, please revert once more official solutions appeared.
195 # see https://github.com/travis-ci/travis-ci/issues/8891#issuecomment-353403729
196 - if [ "$TRAVIS_OS_NAME" = linux ]; then
197 echo '{"ipv6":true,"fixed-cidr-v6":"fd9a:8454:6789:13f7::/64"}' | sudo tee /etc/docker/daemon.json;
198 sudo service docker restart;
202 - case "$TRAVIS_OS_NAME" in
204 travis_retry curl -fo $HOME/stamp https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2017-03-17-stamp-x86_64-unknown-linux-musl &&
205 chmod +x $HOME/stamp &&
206 export PATH=$PATH:$HOME
209 if [[ "$RUST_CHECK_TARGET" == dist ]]; then
210 travis_retry brew update &&
211 travis_retry brew install xz;
213 travis_retry curl -fo /usr/local/bin/sccache https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2017-05-12-sccache-x86_64-apple-darwin &&
214 chmod +x /usr/local/bin/sccache &&
215 travis_retry curl -fo /usr/local/bin/stamp https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2017-03-17-stamp-x86_64-apple-darwin &&
216 chmod +x /usr/local/bin/stamp
222 echo "#### Disk usage before running script:";
224 du . | sort -nr | head -n100
226 RUN_SCRIPT="src/ci/init_repo.sh . $HOME/rustsrc";
227 if [ "$TRAVIS_OS_NAME" = "osx" ]; then
228 export RUN_SCRIPT="$RUN_SCRIPT && src/ci/run.sh";
230 export RUN_SCRIPT="$RUN_SCRIPT && src/ci/docker/run.sh $IMAGE";
233 # Log time information from this machine and an external machine for insight into possible
234 # clock drift. Timezones don't matter since relative deltas give all the necessary info.
237 date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
238 - stamp sh -x -c "$RUN_SCRIPT"
240 date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
244 echo "#### Build successful; Disk usage after running script:";
246 du . | sort -nr | head -n100
250 echo "#### Build failed; Disk usage after running script:";
252 du . | sort -nr | head -n100
254 # One of these is the linux sccache log, one is the OSX sccache log. Instead
255 # of worrying about what system we are just cat both. One of these commands
256 # will fail but that's ok, they'll both get executed.
257 - cat obj/tmp/sccache.log
258 - cat /tmp/sccache.log
260 # Random attempt at debugging currently. Just poking around in here to see if
262 - ls -lat $HOME/Library/Logs/DiagnosticReports/
263 - find $HOME/Library/Logs/DiagnosticReports
265 -not -name '*.stage2-*.crash'
266 -not -name 'com.apple.CoreSimulator.CoreSimulatorService-*.crash'
267 -exec printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" {} \;
268 -exec head -750 {} \;
269 -exec echo travis_fold":"end:crashlog \;
271 # attempt to debug anything killed by the oom killer on linux, just to see if
273 - dmesg | grep -i kill
275 # Save tagged docker images we created and load them if they're available
276 # Travis saves caches whether the build failed or not, nuke rustsrc if
277 # the failure was while updating it (as it may be in a bad state)
278 # https://github.com/travis-ci/travis-ci/issues/4472
280 - docker history -q rust-ci |
283 gzip > $HOME/docker/rust-ci.tar.gz
293 - mkdir -p deploy/$TRAVIS_COMMIT
295 if [ "$TRAVIS_OS_NAME" == "osx" ]; then
296 rm -rf build/dist/doc &&
297 cp -r build/dist/* deploy/$TRAVIS_COMMIT;
299 rm -rf obj/build/dist/doc &&
300 cp -r obj/build/dist/* deploy/$TRAVIS_COMMIT;
302 - travis_retry gem update --system
303 - ls -la deploy/$TRAVIS_COMMIT
307 bucket: rust-lang-ci2
310 upload_dir: rustc-builds
313 access_key_id: AKIAJVBODR3IA4O72THQ
315 secure: "kUGd3t7JcVWFESgIlzvsM8viZgCA9Encs3creW0xLJaLSeI1iVjlJK4h/2/nO6y224AFrh/GUfsNr4/4AlxPuYb8OU5oC5Lv+Ff2JiRDYtuNpyQSKAQp+bRYytWMtrmhja91h118Mbm90cUfcLPwkdiINgJNTXhPKg5Cqu3VYn0="
318 condition: $DEPLOY = 1
320 # this is the same as the above deployment provider except that it uploads to
321 # a slightly different directory and has a different trigger
323 bucket: rust-lang-ci2
326 upload_dir: rustc-builds-alt
329 access_key_id: AKIAJVBODR3IA4O72THQ
331 secure: "kUGd3t7JcVWFESgIlzvsM8viZgCA9Encs3creW0xLJaLSeI1iVjlJK4h/2/nO6y224AFrh/GUfsNr4/4AlxPuYb8OU5oC5Lv+Ff2JiRDYtuNpyQSKAQp+bRYytWMtrmhja91h118Mbm90cUfcLPwkdiINgJNTXhPKg5Cqu3VYn0="
334 condition: $DEPLOY_ALT = 1
336 # These two providers are the same as the two above, except deploy on the
337 # try branch. Travis does not appear to provide a way to use "or" in these
340 bucket: rust-lang-ci2
343 upload_dir: rustc-builds
346 access_key_id: AKIAJVBODR3IA4O72THQ
348 secure: "kUGd3t7JcVWFESgIlzvsM8viZgCA9Encs3creW0xLJaLSeI1iVjlJK4h/2/nO6y224AFrh/GUfsNr4/4AlxPuYb8OU5oC5Lv+Ff2JiRDYtuNpyQSKAQp+bRYytWMtrmhja91h118Mbm90cUfcLPwkdiINgJNTXhPKg5Cqu3VYn0="
351 condition: $DEPLOY = 1
354 bucket: rust-lang-ci2
357 upload_dir: rustc-builds-alt
360 access_key_id: AKIAJVBODR3IA4O72THQ
362 secure: "kUGd3t7JcVWFESgIlzvsM8viZgCA9Encs3creW0xLJaLSeI1iVjlJK4h/2/nO6y224AFrh/GUfsNr4/4AlxPuYb8OU5oC5Lv+Ff2JiRDYtuNpyQSKAQp+bRYytWMtrmhja91h118Mbm90cUfcLPwkdiINgJNTXhPKg5Cqu3VYn0="
365 condition: $DEPLOY_ALT = 1