14 # Images used in testing PR and try-build should be run first.
15 - env: IMAGE=x86_64-gnu-llvm-3.7 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 don't have assertions
22 # turned on, they're deployed to a different location primarily for projects
23 # which are stuck on nightly and don't want llvm assertions in the artifacts
25 - env: IMAGE=dist-x86_64-linux DEPLOY_ALT=1
29 RUST_CHECK_TARGET=dist
30 RUST_CONFIGURE_ARGS="--enable-extended --enable-profiler"
33 RUSTC_RETRY_LINKER_ON_SEGFAULT=1
34 SCCACHE_ERROR_LOG=/tmp/sccache.log
35 MACOSX_DEPLOYMENT_TARGET=10.7
42 # macOS builders. These are placed near the beginning because they are very
45 # OSX builders running tests, these run the full test suite.
47 # Note that the compiler is compiled to target 10.8 here because the Xcode
48 # version that we're using, 8.2, cannot compile LLVM for OSX 10.7.
50 RUST_CHECK_TARGET=check
51 RUST_CONFIGURE_ARGS="--build=x86_64-apple-darwin --enable-sanitizers --enable-profiler"
53 RUSTC_RETRY_LINKER_ON_SEGFAULT=1
54 SCCACHE_ERROR_LOG=/tmp/sccache.log
55 MACOSX_DEPLOYMENT_TARGET=10.8
56 MACOSX_STD_DEPLOYMENT_TARGET=10.7
64 RUST_CHECK_TARGET=check
65 RUST_CONFIGURE_ARGS=--build=i686-apple-darwin
67 RUSTC_RETRY_LINKER_ON_SEGFAULT=1
68 SCCACHE_ERROR_LOG=/tmp/sccache.log
69 MACOSX_DEPLOYMENT_TARGET=10.8
70 MACOSX_STD_DEPLOYMENT_TARGET=10.7
77 # OSX builders producing releases. These do not run the full test suite and
78 # just produce a bunch of artifacts.
80 # Note that these are running in the `xcode7` image instead of the
81 # `xcode8.2` image as above. That's because we want to build releases for
82 # OSX 10.7 and `xcode7` is the latest Xcode able to compile LLVM for 10.7.
84 RUST_CHECK_TARGET=dist
85 RUST_CONFIGURE_ARGS="--build=i686-apple-darwin --enable-extended --enable-profiler"
88 RUSTC_RETRY_LINKER_ON_SEGFAULT=1
89 SCCACHE_ERROR_LOG=/tmp/sccache.log
90 MACOSX_DEPLOYMENT_TARGET=10.7
98 RUST_CHECK_TARGET=dist
99 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"
102 RUSTC_RETRY_LINKER_ON_SEGFAULT=1
103 SCCACHE_ERROR_LOG=/tmp/sccache.log
104 MACOSX_DEPLOYMENT_TARGET=10.7
106 NO_DEBUG_ASSERTIONS=1
111 # Linux builders, remaining docker images
112 - env: IMAGE=arm-android
114 - env: IMAGE=armhf-gnu
116 - env: IMAGE=cross DEPLOY=1
118 - env: IMAGE=cross2 DEPLOY=1
120 - env: IMAGE=dist-aarch64-linux DEPLOY=1
122 - env: IMAGE=dist-android DEPLOY=1
124 - env: IMAGE=dist-arm-linux DEPLOY=1
126 - env: IMAGE=dist-armhf-linux DEPLOY=1
128 - env: IMAGE=dist-armv7-linux DEPLOY=1
130 - env: IMAGE=dist-i586-gnu-i686-musl DEPLOY=1
132 - env: IMAGE=dist-i686-freebsd DEPLOY=1
134 - env: IMAGE=dist-i686-linux DEPLOY=1
136 - env: IMAGE=dist-mips-linux DEPLOY=1
138 - env: IMAGE=dist-mips64-linux DEPLOY=1
140 - env: IMAGE=dist-mips64el-linux DEPLOY=1
142 - env: IMAGE=dist-mipsel-linux DEPLOY=1
144 - env: IMAGE=dist-powerpc-linux DEPLOY=1
146 - env: IMAGE=dist-powerpc64-linux DEPLOY=1
148 - env: IMAGE=dist-powerpc64le-linux DEPLOY=1
150 - env: IMAGE=dist-s390x-linux DEPLOY=1
152 - env: IMAGE=dist-x86_64-freebsd DEPLOY=1
154 - env: IMAGE=dist-x86_64-musl DEPLOY=1
156 - env: IMAGE=dist-x86_64-netbsd DEPLOY=1
160 - env: IMAGE=i686-gnu
162 - env: IMAGE=i686-gnu-nopt
164 # - env: IMAGE=wasm32 issue 42646
166 - env: IMAGE=x86_64-gnu
168 - env: IMAGE=x86_64-gnu-full-bootstrap
170 - env: IMAGE=x86_64-gnu-aux
172 - env: IMAGE=x86_64-gnu-debug
174 - env: IMAGE=x86_64-gnu-nopt
176 - env: IMAGE=x86_64-gnu-distcheck
178 - env: IMAGE=x86_64-gnu-incremental
183 - SCCACHE_BUCKET=rust-lang-ci-sccache2
184 - SCCACHE_REGION=us-west-1
185 - AWS_ACCESS_KEY_ID=AKIAJAMV3QAMMA6AXHFQ
186 # AWS_SECRET_ACCESS_KEY=...
187 - secure: "j96XxTVOSUf4s4r4htIxn/fvIa5DWbMgLqWl7r8z2QfgUwscmkMXAwXuFNc7s7bGTpV/+CgDiMFFM6BAFLGKutytIF6oA02s9b+usQYnM0th7YQ2AIgm9GtMTJCJp4AoyfFmh8F2faUICBZlfVLUJ34udHEe35vOklix+0k4WDo="
190 - zcat $HOME/docker/rust-ci.tar.gz | docker load || true
191 - mkdir -p $HOME/rustsrc
194 - case "$TRAVIS_OS_NAME" in
196 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 &&
197 chmod +x $HOME/stamp &&
198 export PATH=$PATH:$HOME
201 if [[ "$RUST_CHECK_TARGET" == dist ]]; then
202 travis_retry brew update &&
203 travis_retry brew install xz;
205 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 &&
206 chmod +x /usr/local/bin/sccache &&
207 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 &&
208 chmod +x /usr/local/bin/stamp
214 echo "#### Disk usage before running script:";
216 du . | sort -nr | head -n100
218 RUN_SCRIPT="src/ci/init_repo.sh . $HOME/rustsrc";
219 if [ "$TRAVIS_OS_NAME" = "osx" ]; then
220 export RUN_SCRIPT="$RUN_SCRIPT && src/ci/run.sh";
222 export RUN_SCRIPT="$RUN_SCRIPT && src/ci/docker/run.sh $IMAGE";
225 # Log time information from this machine and an external machine for insight into possible
226 # clock drift. Timezones don't matter since relative deltas give all the necessary info.
229 date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
230 - stamp sh -x -c "$RUN_SCRIPT"
232 date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
236 echo "#### Build successful; Disk usage after running script:";
238 du . | sort -nr | head -n100
242 echo "#### Build failed; Disk usage after running script:";
244 du . | sort -nr | head -n100
246 # One of these is the linux sccache log, one is the OSX sccache log. Instead
247 # of worrying about what system we are just cat both. One of these commands
248 # will fail but that's ok, they'll both get executed.
249 - cat obj/tmp/sccache.log
250 - cat /tmp/sccache.log
252 # Random attempt at debugging currently. Just poking around in here to see if
254 - ls $HOME/Library/Logs/DiagnosticReports/
256 # attempt to debug anything killed by the oom killer on linux, just to see if
258 - dmesg | grep -i kill
260 # Save tagged docker images we created and load them if they're available
261 # Travis saves caches whether the build failed or not, nuke rustsrc if
262 # the failure was while updating it (as it may be in a bad state)
263 # https://github.com/travis-ci/travis-ci/issues/4472
265 - docker history -q rust-ci |
268 gzip > $HOME/docker/rust-ci.tar.gz
278 - mkdir -p deploy/$TRAVIS_COMMIT
280 if [ "$TRAVIS_OS_NAME" == "osx" ]; then
281 rm -rf build/dist/doc &&
282 cp -r build/dist/* deploy/$TRAVIS_COMMIT;
284 rm -rf obj/build/dist/doc &&
285 cp -r obj/build/dist/* deploy/$TRAVIS_COMMIT;
290 bucket: rust-lang-ci2
293 upload_dir: rustc-builds
296 access_key_id: AKIAJVBODR3IA4O72THQ
298 secure: "kUGd3t7JcVWFESgIlzvsM8viZgCA9Encs3creW0xLJaLSeI1iVjlJK4h/2/nO6y224AFrh/GUfsNr4/4AlxPuYb8OU5oC5Lv+Ff2JiRDYtuNpyQSKAQp+bRYytWMtrmhja91h118Mbm90cUfcLPwkdiINgJNTXhPKg5Cqu3VYn0="
301 condition: $DEPLOY = 1
304 bucket: rust-lang-ci2
307 upload_dir: rustc-builds-try
310 access_key_id: AKIAJVBODR3IA4O72THQ
312 secure: "kUGd3t7JcVWFESgIlzvsM8viZgCA9Encs3creW0xLJaLSeI1iVjlJK4h/2/nO6y224AFrh/GUfsNr4/4AlxPuYb8OU5oC5Lv+Ff2JiRDYtuNpyQSKAQp+bRYytWMtrmhja91h118Mbm90cUfcLPwkdiINgJNTXhPKg5Cqu3VYn0="
315 condition: $DEPLOY = 1
317 # this is the same as the above deployment provider except that it uploads to
318 # a slightly different directory and has a different trigger
320 bucket: rust-lang-ci2
323 upload_dir: rustc-builds-alt
326 access_key_id: AKIAJVBODR3IA4O72THQ
328 secure: "kUGd3t7JcVWFESgIlzvsM8viZgCA9Encs3creW0xLJaLSeI1iVjlJK4h/2/nO6y224AFrh/GUfsNr4/4AlxPuYb8OU5oC5Lv+Ff2JiRDYtuNpyQSKAQp+bRYytWMtrmhja91h118Mbm90cUfcLPwkdiINgJNTXhPKg5Cqu3VYn0="
331 condition: $DEPLOY_ALT = 1