14 # Linux builders, all docker images
15 - env: IMAGE=arm-android
16 - env: IMAGE=armhf-gnu
17 - env: IMAGE=cross DEPLOY=1
18 - env: IMAGE=dist-android DEPLOY=1
19 - env: IMAGE=dist-arm-linux DEPLOY=1
20 - env: IMAGE=dist-armv7-aarch64-linux DEPLOY=1
21 - env: IMAGE=dist-freebsd DEPLOY=1
22 - env: IMAGE=dist-i586-gnu-i686-musl DEPLOY=1
23 - env: IMAGE=dist-fuchsia DEPLOY=1
24 - env: IMAGE=dist-mips-linux DEPLOY=1
25 - env: IMAGE=dist-mips64-linux DEPLOY=1
26 - env: IMAGE=dist-powerpc-linux DEPLOY=1
27 - env: IMAGE=dist-powerpc64-linux DEPLOY=1
28 - env: IMAGE=dist-s390x-linux-netbsd DEPLOY=1
29 - env: IMAGE=dist-x86-linux DEPLOY=1
30 - env: IMAGE=dist-x86_64-musl DEPLOY=1
31 - env: IMAGE=emscripten
33 - env: IMAGE=i686-gnu-nopt
34 - env: IMAGE=x86_64-gnu
35 - env: IMAGE=x86_64-gnu-full-bootstrap
36 - env: IMAGE=x86_64-gnu-aux
37 - env: IMAGE=x86_64-gnu-debug
38 - env: IMAGE=x86_64-gnu-nopt
39 - env: IMAGE=x86_64-gnu-llvm-3.7 ALLOW_PR=1 RUST_BACKTRACE=1
40 - env: IMAGE=x86_64-gnu-distcheck
41 - env: IMAGE=x86_64-gnu-incremental
43 # OSX builders running tests, these run the full test suite.
45 # Note that the compiler is compiled to target 10.8 here because the Xcode
46 # version that we're using, 8.2, cannot compile LLVM for OSX 10.7.
48 RUST_CHECK_TARGET=check
49 RUST_CONFIGURE_ARGS=--build=x86_64-apple-darwin
51 RUSTC_RETRY_LINKER_ON_SEGFAULT=1
52 SCCACHE_ERROR_LOG=/tmp/sccache.log
53 MACOSX_DEPLOYMENT_TARGET=10.8
54 MACOSX_STD_DEPLOYMENT_TARGET=10.7
57 install: &osx_install_sccache >
58 travis_retry curl -o /usr/local/bin/sccache https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-03-24-sccache-x86_64-apple-darwin &&
59 chmod +x /usr/local/bin/sccache &&
60 travis_retry curl -o /usr/local/bin/stamp https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-03-17-stamp-x86_64-apple-darwin &&
61 chmod +x /usr/local/bin/stamp
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
72 install: *osx_install_sccache
74 # OSX builders producing releases. These do not run the full test suite and
75 # just produce a bunch of artifacts.
77 # Note that these are running in the `xcode7` image instead of the
78 # `xcode8.2` image as above. That's because we want to build releases for
79 # OSX 10.7 and `xcode7` is the latest Xcode able to compile LLVM for 10.7.
81 RUST_CHECK_TARGET=dist
82 RUST_CONFIGURE_ARGS="--build=i686-apple-darwin --enable-extended"
85 RUSTC_RETRY_LINKER_ON_SEGFAULT=1
86 SCCACHE_ERROR_LOG=/tmp/sccache.log
87 MACOSX_DEPLOYMENT_TARGET=10.7
90 install: *osx_install_sccache
92 RUST_CHECK_TARGET=dist
93 RUST_CONFIGURE_ARGS="--target=aarch64-apple-ios,armv7-apple-ios,armv7s-apple-ios,i386-apple-ios,x86_64-apple-ios --enable-extended"
96 RUSTC_RETRY_LINKER_ON_SEGFAULT=1
97 SCCACHE_ERROR_LOG=/tmp/sccache.log
98 MACOSX_DEPLOYMENT_TARGET=10.7
101 install: *osx_install_sccache
103 # "alternate" deployments, these are "nightlies" but don't have assertions
104 # turned on, they're deployed to a different location primarily for projects
105 # which are stuck on nightly and don't want llvm assertions in the artifacts
107 - env: IMAGE=dist-x86-linux DEPLOY_ALT=1
109 RUST_CHECK_TARGET=dist
110 RUST_CONFIGURE_ARGS="--enable-extended"
113 RUSTC_RETRY_LINKER_ON_SEGFAULT=1
114 SCCACHE_ERROR_LOG=/tmp/sccache.log
115 MACOSX_DEPLOYMENT_TARGET=10.7
118 install: *osx_install_sccache
122 - SCCACHE_BUCKET=rust-lang-ci-sccache
123 - AWS_ACCESS_KEY_ID=AKIAIMX7VLAS3PZAVLUQ
124 # AWS_SECRET_ACCESS_KEY=...
125 - secure: "Pixhh0hXDqGCdOyLtGFjli3J2AtDWIpyb2btIrLe956nCBDRutRoMm6rv5DI9sFZN07Mms7VzNNvhc9wCW1y63JAm414d2Co7Ob8kWMZlz9l9t7ACHuktUiis8yr+S4Quq1Vqd6pqi7pf2J++UxC8R/uLeqVrubzr6+X7AbmEFE="
127 # Note that this is overridden on OSX builders
129 travis_retry curl -o $HOME/stamp https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-03-17-stamp-x86_64-unknown-linux-musl &&
130 chmod +x $HOME/stamp &&
131 export PATH=$PATH:$HOME
135 echo "#### Disk usage before running script:";
137 du . | sort -nr | head -n100
141 if [ "$ALLOW_PR" = "" ] && [ "$TRAVIS_BRANCH" != "auto" ]; then
142 echo skipping, not a full build
144 stamp src/ci/init_repo.sh . "$HOME/rustsrc" &&
145 if [ "$TRAVIS_OS_NAME" = "osx" ]; then
148 stamp src/ci/docker/run.sh $IMAGE;
154 echo "#### Build successful; Disk usage after running script:";
156 du . | sort -nr | head -n100
160 echo "#### Build failed; Disk usage after running script:";
162 du . | sort -nr | head -n100
164 # One of these is the linux sccache log, one is the OSX sccache log. Instead
165 # of worrying about what system we are just cat both. One of these commands
166 # will fail but that's ok, they'll both get executed.
167 - cat obj/tmp/sccache.log
168 - cat /tmp/sccache.log
170 # Random attempt at debugging currently. Just poking around in here to see if
172 - ls $HOME/Library/Logs/DiagnosticReports/
174 # attempt to debug anything killed by the oom killer on linux, just to see if
176 - dmesg | grep -i kill
178 # Save tagged docker images we created and load them if they're available
179 # Travis saves caches whether the build failed or not, nuke rustsrc if
180 # the failure was while updating it (as it may be in an bad state)
181 # https://github.com/travis-ci/travis-ci/issues/4472
183 - docker history -q rust-ci |
186 gzip > $HOME/docker/rust-ci.tar.gz
187 - if [ ! -f $HOME/rustsrc/cache_valid1 ]; then
188 echo "WARNING rustsrc cache was invalid when saving";
189 rm -rf $HOME/rustsrc && mkdir $HOME/rustsrc;
192 - zcat $HOME/docker/rust-ci.tar.gz | docker load || true
193 - mkdir -p $HOME/rustsrc
204 - mkdir -p deploy/$TRAVIS_COMMIT
206 if [ "$TRAVIS_OS_NAME" == "osx" ]; then
207 rm -rf build/dist/doc &&
208 cp -r build/dist/* deploy/$TRAVIS_COMMIT;
210 rm -rf obj/build/dist/doc &&
211 cp -r obj/build/dist/* deploy/$TRAVIS_COMMIT;
219 upload_dir: rustc-builds
222 access_key_id: AKIAIPQVNYF2T3DTYIWQ
224 secure: "FBqDqOTeIPMu6v/WYPf4CFSlh9rLRZGKVtpLa5KkyuOhXRTrnEzBduEtS8/FMIxdQImvurhSvxWvqRybMOi4qoVfjMqqpHAI7uBbidbrvAcJoHNsx6BgUNVCIoH6a0UsAjTUtm6/YPIpzbHoLZXPL0GrHPMk6Mu04qVSmcYNWn4="
227 condition: $DEPLOY = 1
229 # this is the same as the above deployment provider except that it uploads to
230 # a slightly different directory and has a different trigger
235 upload_dir: rustc-builds-alt
238 access_key_id: AKIAIPQVNYF2T3DTYIWQ
240 secure: "FBqDqOTeIPMu6v/WYPf4CFSlh9rLRZGKVtpLa5KkyuOhXRTrnEzBduEtS8/FMIxdQImvurhSvxWvqRybMOi4qoVfjMqqpHAI7uBbidbrvAcJoHNsx6BgUNVCIoH6a0UsAjTUtm6/YPIpzbHoLZXPL0GrHPMk6Mu04qVSmcYNWn4="
243 condition: $DEPLOY_ALT = 1