4 # FIXME(#44398) shouldn't need to be here
5 group: deprecated-2017Q3
16 # Images used in testing PR and try-build should be run first.
17 - env: IMAGE=x86_64-gnu-llvm-3.7 ALLOW_PR=1 RUST_BACKTRACE=1
18 - env: IMAGE=dist-x86_64-linux DEPLOY=1 ALLOW_TRY=1
20 # "alternate" deployments, these are "nightlies" but don't have assertions
21 # turned on, they're deployed to a different location primarily for projects
22 # which are stuck on nightly and don't want llvm assertions in the artifacts
24 - env: IMAGE=dist-x86_64-linux DEPLOY_ALT=1
26 RUST_CHECK_TARGET=dist
27 RUST_CONFIGURE_ARGS="--enable-extended --enable-profiler"
30 RUSTC_RETRY_LINKER_ON_SEGFAULT=1
31 SCCACHE_ERROR_LOG=/tmp/sccache.log
32 MACOSX_DEPLOYMENT_TARGET=10.7
36 # macOS builders. These are placed near the beginning because they are very
39 # OSX builders running tests, these run the full test suite.
41 # Note that the compiler is compiled to target 10.8 here because the Xcode
42 # version that we're using, 8.2, cannot compile LLVM for OSX 10.7.
44 RUST_CHECK_TARGET=check
45 RUST_CONFIGURE_ARGS="--build=x86_64-apple-darwin --enable-sanitizers --enable-profiler"
47 RUSTC_RETRY_LINKER_ON_SEGFAULT=1
48 SCCACHE_ERROR_LOG=/tmp/sccache.log
49 MACOSX_DEPLOYMENT_TARGET=10.8
50 MACOSX_STD_DEPLOYMENT_TARGET=10.7
54 RUST_CHECK_TARGET=check
55 RUST_CONFIGURE_ARGS=--build=i686-apple-darwin
57 RUSTC_RETRY_LINKER_ON_SEGFAULT=1
58 SCCACHE_ERROR_LOG=/tmp/sccache.log
59 MACOSX_DEPLOYMENT_TARGET=10.8
60 MACOSX_STD_DEPLOYMENT_TARGET=10.7
64 # OSX builders producing releases. These do not run the full test suite and
65 # just produce a bunch of artifacts.
67 # Note that these are running in the `xcode7` image instead of the
68 # `xcode8.2` image as above. That's because we want to build releases for
69 # OSX 10.7 and `xcode7` is the latest Xcode able to compile LLVM for 10.7.
71 RUST_CHECK_TARGET=dist
72 RUST_CONFIGURE_ARGS="--build=i686-apple-darwin --enable-extended --enable-profiler"
75 RUSTC_RETRY_LINKER_ON_SEGFAULT=1
76 SCCACHE_ERROR_LOG=/tmp/sccache.log
77 MACOSX_DEPLOYMENT_TARGET=10.7
81 RUST_CHECK_TARGET=dist
82 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"
85 RUSTC_RETRY_LINKER_ON_SEGFAULT=1
86 SCCACHE_ERROR_LOG=/tmp/sccache.log
87 MACOSX_DEPLOYMENT_TARGET=10.7
91 # Linux builders, remaining docker images
92 - env: IMAGE=arm-android
93 - env: IMAGE=armhf-gnu
94 - env: IMAGE=cross DEPLOY=1
95 - env: IMAGE=dist-aarch64-linux DEPLOY=1
96 - env: IMAGE=dist-android DEPLOY=1
97 - env: IMAGE=dist-arm-linux DEPLOY=1
98 - env: IMAGE=dist-armhf-linux DEPLOY=1
99 - env: IMAGE=dist-armv7-linux DEPLOY=1
100 - env: IMAGE=dist-fuchsia DEPLOY=1
101 - env: IMAGE=dist-i586-gnu-i686-musl DEPLOY=1
102 - env: IMAGE=dist-i686-freebsd DEPLOY=1
103 - env: IMAGE=dist-i686-linux DEPLOY=1
104 - env: IMAGE=dist-mips-linux DEPLOY=1
105 - env: IMAGE=dist-mips64-linux DEPLOY=1
106 - env: IMAGE=dist-mips64el-linux DEPLOY=1
107 - env: IMAGE=dist-mipsel-linux DEPLOY=1
108 - env: IMAGE=dist-powerpc-linux DEPLOY=1
109 - env: IMAGE=dist-powerpc64-linux DEPLOY=1
110 - env: IMAGE=dist-powerpc64le-linux DEPLOY=1
111 - env: IMAGE=dist-s390x-linux DEPLOY=1
112 - env: IMAGE=dist-x86_64-freebsd DEPLOY=1
113 - env: IMAGE=dist-x86_64-musl DEPLOY=1
114 - env: IMAGE=dist-x86_64-netbsd DEPLOY=1
116 - env: IMAGE=i686-gnu
117 - env: IMAGE=i686-gnu-nopt
118 # - env: IMAGE=wasm32 issue 42646
119 - env: IMAGE=x86_64-gnu
120 - env: IMAGE=x86_64-gnu-full-bootstrap
121 - env: IMAGE=x86_64-gnu-aux
122 - env: IMAGE=x86_64-gnu-debug
123 - env: IMAGE=x86_64-gnu-nopt
124 - env: IMAGE=x86_64-gnu-distcheck
125 - env: IMAGE=x86_64-gnu-incremental
129 - SCCACHE_BUCKET=rust-lang-ci-sccache
130 - AWS_ACCESS_KEY_ID=AKIAIMX7VLAS3PZAVLUQ
131 # AWS_SECRET_ACCESS_KEY=...
132 - secure: "Pixhh0hXDqGCdOyLtGFjli3J2AtDWIpyb2btIrLe956nCBDRutRoMm6rv5DI9sFZN07Mms7VzNNvhc9wCW1y63JAm414d2Co7Ob8kWMZlz9l9t7ACHuktUiis8yr+S4Quq1Vqd6pqi7pf2J++UxC8R/uLeqVrubzr6+X7AbmEFE="
135 # If we are building a pull request, do the build if $ALLOW_PR == 1
136 # Otherwise, do the build if we are on the auto branch, or the try branch and $ALLOW_TRY == 1
138 if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
139 if [[ "$ALLOW_PR" == "1" ]]; then
140 export SKIP_BUILD=false;
142 export SKIP_BUILD=true;
144 elif [[ "$TRAVIS_BRANCH" == "auto" || ( "$ALLOW_TRY" == "1" && "$TRAVIS_BRANCH" == "try" ) ]]; then
145 export SKIP_BUILD=false;
147 export SKIP_BUILD=true;
150 if [[ "$SKIP_BUILD" == false ]]; then
151 zcat $HOME/docker/rust-ci.tar.gz | docker load || true
153 - mkdir -p $HOME/rustsrc
157 if [[ "$SKIP_BUILD" == true ]]; then
158 echo echo skipping, not a full build > $HOME/stamp &&
159 chmod +x $HOME/stamp &&
160 export PATH=$PATH:$HOME;
162 case "$TRAVIS_OS_NAME" in
164 travis_retry curl -fo $HOME/stamp https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-03-17-stamp-x86_64-unknown-linux-musl &&
165 chmod +x $HOME/stamp &&
166 export PATH=$PATH:$HOME
169 if [[ "$RUST_CHECK_TARGET" == dist ]]; then
170 travis_retry brew update &&
171 travis_retry brew install xz;
173 travis_retry curl -fo /usr/local/bin/sccache https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-05-12-sccache-x86_64-apple-darwin &&
174 chmod +x /usr/local/bin/sccache &&
175 travis_retry curl -fo /usr/local/bin/stamp https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-03-17-stamp-x86_64-apple-darwin &&
176 chmod +x /usr/local/bin/stamp
183 echo "#### Disk usage before running script:";
185 du . | sort -nr | head -n100
187 RUN_SCRIPT="src/ci/init_repo.sh . $HOME/rustsrc";
188 if [ "$TRAVIS_OS_NAME" = "osx" ]; then
189 export RUN_SCRIPT="$RUN_SCRIPT && src/ci/run.sh";
191 export RUN_SCRIPT="$RUN_SCRIPT && src/ci/docker/run.sh $IMAGE";
194 # Log time information from this machine and an external machine for insight into possible
195 # clock drift. Timezones don't matter since relative deltas give all the necessary info.
198 date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
199 - stamp sh -x -c "$RUN_SCRIPT"
201 date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
205 echo "#### Build successful; Disk usage after running script:";
207 du . | sort -nr | head -n100
211 echo "#### Build failed; Disk usage after running script:";
213 du . | sort -nr | head -n100
215 # One of these is the linux sccache log, one is the OSX sccache log. Instead
216 # of worrying about what system we are just cat both. One of these commands
217 # will fail but that's ok, they'll both get executed.
218 - cat obj/tmp/sccache.log
219 - cat /tmp/sccache.log
221 # Random attempt at debugging currently. Just poking around in here to see if
223 - ls $HOME/Library/Logs/DiagnosticReports/
225 # attempt to debug anything killed by the oom killer on linux, just to see if
227 - dmesg | grep -i kill
229 # Save tagged docker images we created and load them if they're available
230 # Travis saves caches whether the build failed or not, nuke rustsrc if
231 # the failure was while updating it (as it may be in a bad state)
232 # https://github.com/travis-ci/travis-ci/issues/4472
234 - docker history -q rust-ci |
237 gzip > $HOME/docker/rust-ci.tar.gz
247 - mkdir -p deploy/$TRAVIS_COMMIT
249 if [ "$TRAVIS_OS_NAME" == "osx" ]; then
250 rm -rf build/dist/doc &&
251 cp -r build/dist/* deploy/$TRAVIS_COMMIT;
253 rm -rf obj/build/dist/doc &&
254 cp -r obj/build/dist/* deploy/$TRAVIS_COMMIT;
262 upload_dir: rustc-builds
265 access_key_id: AKIAIPQVNYF2T3DTYIWQ
267 secure: "FBqDqOTeIPMu6v/WYPf4CFSlh9rLRZGKVtpLa5KkyuOhXRTrnEzBduEtS8/FMIxdQImvurhSvxWvqRybMOi4qoVfjMqqpHAI7uBbidbrvAcJoHNsx6BgUNVCIoH6a0UsAjTUtm6/YPIpzbHoLZXPL0GrHPMk6Mu04qVSmcYNWn4="
270 condition: $DEPLOY = 1
276 upload_dir: rustc-builds-try
279 access_key_id: AKIAIPQVNYF2T3DTYIWQ
281 secure: "FBqDqOTeIPMu6v/WYPf4CFSlh9rLRZGKVtpLa5KkyuOhXRTrnEzBduEtS8/FMIxdQImvurhSvxWvqRybMOi4qoVfjMqqpHAI7uBbidbrvAcJoHNsx6BgUNVCIoH6a0UsAjTUtm6/YPIpzbHoLZXPL0GrHPMk6Mu04qVSmcYNWn4="
284 condition: $DEPLOY = 1 && $ALLOW_TRY = 1
286 # this is the same as the above deployment provider except that it uploads to
287 # a slightly different directory and has a different trigger
292 upload_dir: rustc-builds-alt
295 access_key_id: AKIAIPQVNYF2T3DTYIWQ
297 secure: "FBqDqOTeIPMu6v/WYPf4CFSlh9rLRZGKVtpLa5KkyuOhXRTrnEzBduEtS8/FMIxdQImvurhSvxWvqRybMOi4qoVfjMqqpHAI7uBbidbrvAcJoHNsx6BgUNVCIoH6a0UsAjTUtm6/YPIpzbHoLZXPL0GrHPMk6Mu04qVSmcYNWn4="
300 condition: $DEPLOY_ALT = 1