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 CI_JOB_NAME=dist-x86_64-linux-alt
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 MACOSX_DEPLOYMENT_TARGET=10.7
36 CI_JOB_NAME=dist-x86_64-apple-alt
38 osx_image: xcode9.3-moar
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 MACOSX_DEPLOYMENT_TARGET=10.8
54 MACOSX_STD_DEPLOYMENT_TARGET=10.7
57 CI_JOB_NAME=x86_64-apple
59 osx_image: xcode9.3-moar
63 RUST_CHECK_TARGET=check
64 RUST_CONFIGURE_ARGS=--build=i686-apple-darwin
66 RUSTC_RETRY_LINKER_ON_SEGFAULT=1
67 MACOSX_DEPLOYMENT_TARGET=10.8
68 MACOSX_STD_DEPLOYMENT_TARGET=10.7
71 CI_JOB_NAME=i686-apple
73 osx_image: xcode9.3-moar
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-full-tools --enable-profiler"
87 RUSTC_RETRY_LINKER_ON_SEGFAULT=1
88 MACOSX_DEPLOYMENT_TARGET=10.7
91 CI_JOB_NAME=dist-i686-apple
93 osx_image: xcode9.3-moar
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-full-tools --enable-sanitizers --enable-profiler"
101 RUSTC_RETRY_LINKER_ON_SEGFAULT=1
102 MACOSX_DEPLOYMENT_TARGET=10.7
104 NO_DEBUG_ASSERTIONS=1
105 CI_JOB_NAME=dist-x86_64-apple
107 osx_image: xcode9.3-moar
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-i586-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=mingw-check
180 if: type = pull_request OR branch = auto
182 - stage: publish toolstate
183 if: branch = master AND type = push
188 MESSAGE_FILE=$(mktemp -t msg.XXXXXX);
189 . src/ci/docker/x86_64-gnu-tools/repo.sh;
190 commit_toolstate_change "$MESSAGE_FILE" "$TRAVIS_BUILD_DIR/src/tools/publish_toolstate.py" "$(git rev-parse HEAD)" "$(git log --format=%s -n1 HEAD)" "$MESSAGE_FILE" "$TOOLSTATE_REPO_ACCESS_TOKEN";
194 - SCCACHE_BUCKET=rust-lang-ci-sccache2
195 - SCCACHE_REGION=us-west-1
196 - AWS_ACCESS_KEY_ID=AKIAJAMV3QAMMA6AXHFQ
197 # AWS_SECRET_ACCESS_KEY=...
198 - secure: "j96XxTVOSUf4s4r4htIxn/fvIa5DWbMgLqWl7r8z2QfgUwscmkMXAwXuFNc7s7bGTpV/+CgDiMFFM6BAFLGKutytIF6oA02s9b+usQYnM0th7YQ2AIgm9GtMTJCJp4AoyfFmh8F2faUICBZlfVLUJ34udHEe35vOklix+0k4WDo="
199 # TOOLSTATE_REPO_ACCESS_TOKEN=...
200 - secure: "ESfcXqv4N2VMhqi2iIyw6da9VrsA78I4iR1asouCaq4hzTTrkB4WNRrfURy6xg72gQ4nMhtRJbB0/2jmc9Cu1+g2CzXtyiL223aJ5CKrXdcvbitopQSDfp07dMWm+UED+hNFEanpErKAeU/6FM3A+J+60PMk8MCF1h9tqNRISJw="
203 # We'll use the AWS cli to download/upload cached docker layers, so install
205 - if [ "$TRAVIS_OS_NAME" = linux ]; then
206 pip install --user awscli;
207 export PATH=$PATH:$HOME/.local/bin;
209 - mkdir -p $HOME/rustsrc
210 # FIXME(#46924): these two commands are required to enable IPv6,
211 # they shouldn't exist, please revert once more official solutions appeared.
212 # see https://github.com/travis-ci/travis-ci/issues/8891#issuecomment-353403729
213 - if [ "$TRAVIS_OS_NAME" = linux ]; then
214 echo '{"ipv6":true,"fixed-cidr-v6":"fd9a:8454:6789:13f7::/64"}' | sudo tee /etc/docker/daemon.json;
215 sudo service docker restart;
219 - case "$TRAVIS_OS_NAME" in
221 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 &&
222 chmod +x $HOME/stamp &&
223 export PATH=$PATH:$HOME
226 if [[ "$RUST_CHECK_TARGET" == dist ]]; then
227 travis_retry brew update &&
228 travis_retry brew install xz;
230 travis_retry curl -fo /usr/local/bin/sccache https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2018-04-02-sccache-x86_64-apple-darwin &&
231 chmod +x /usr/local/bin/sccache &&
232 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 &&
233 chmod +x /usr/local/bin/stamp &&
234 travis_retry curl -f http://releases.llvm.org/6.0.0/clang+llvm-6.0.0-x86_64-apple-darwin.tar.xz | tar xJf - &&
235 export CC=`pwd`/clang+llvm-6.0.0-x86_64-apple-darwin/bin/clang &&
236 export CXX=`pwd`/clang+llvm-6.0.0-x86_64-apple-darwin/bin/clang++ &&
243 echo "#### Disk usage before running script:";
245 du . | sort -nr | head -n100
247 RUN_SCRIPT="src/ci/init_repo.sh . $HOME/rustsrc";
248 if [ "$TRAVIS_OS_NAME" = "osx" ]; then
249 export RUN_SCRIPT="$RUN_SCRIPT && src/ci/run.sh";
251 export RUN_SCRIPT="$RUN_SCRIPT && src/ci/docker/run.sh $IMAGE";
254 # Log time information from this machine and an external machine for insight into possible
255 # clock drift. Timezones don't matter since relative deltas give all the necessary info.
258 date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
259 - stamp sh -x -c "$RUN_SCRIPT"
261 date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
265 echo "#### Build successful; Disk usage after running script:";
267 du . | sort -nr | head -n100
271 echo "#### Build failed; Disk usage after running script:";
273 du . | sort -nr | head -n100
275 # Random attempt at debugging currently. Just poking around in here to see if
277 - ls -lat $HOME/Library/Logs/DiagnosticReports/
278 - find $HOME/Library/Logs/DiagnosticReports
281 -not -name '*.stage2-*.crash'
282 -not -name 'com.apple.CoreSimulator.CoreSimulatorService-*.crash'
283 -exec printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" {} \;
284 -exec head -750 {} \;
285 -exec echo travis_fold":"end:crashlog \; || true
287 # attempt to debug anything killed by the oom killer on linux, just to see if
289 - dmesg | grep -i kill
295 - mkdir -p deploy/$TRAVIS_COMMIT
297 if [ "$TRAVIS_OS_NAME" == "osx" ]; then
298 rm -rf build/dist/doc &&
299 cp -r build/dist/* deploy/$TRAVIS_COMMIT;
301 rm -rf obj/build/dist/doc &&
302 cp -r obj/build/dist/* deploy/$TRAVIS_COMMIT;
304 - travis_retry gem update --system
305 - ls -la deploy/$TRAVIS_COMMIT
309 bucket: rust-lang-ci2
312 upload_dir: rustc-builds
315 access_key_id: AKIAJVBODR3IA4O72THQ
317 secure: "kUGd3t7JcVWFESgIlzvsM8viZgCA9Encs3creW0xLJaLSeI1iVjlJK4h/2/nO6y224AFrh/GUfsNr4/4AlxPuYb8OU5oC5Lv+Ff2JiRDYtuNpyQSKAQp+bRYytWMtrmhja91h118Mbm90cUfcLPwkdiINgJNTXhPKg5Cqu3VYn0="
320 condition: $DEPLOY = 1
322 # this is the same as the above deployment provider except that it uploads to
323 # a slightly different directory and has a different trigger
325 bucket: rust-lang-ci2
328 upload_dir: rustc-builds-alt
331 access_key_id: AKIAJVBODR3IA4O72THQ
333 secure: "kUGd3t7JcVWFESgIlzvsM8viZgCA9Encs3creW0xLJaLSeI1iVjlJK4h/2/nO6y224AFrh/GUfsNr4/4AlxPuYb8OU5oC5Lv+Ff2JiRDYtuNpyQSKAQp+bRYytWMtrmhja91h118Mbm90cUfcLPwkdiINgJNTXhPKg5Cqu3VYn0="
336 condition: $DEPLOY_ALT = 1
338 # These two providers are the same as the two above, except deploy on the
339 # try branch. Travis does not appear to provide a way to use "or" in these
342 bucket: rust-lang-ci2
345 upload_dir: rustc-builds
348 access_key_id: AKIAJVBODR3IA4O72THQ
350 secure: "kUGd3t7JcVWFESgIlzvsM8viZgCA9Encs3creW0xLJaLSeI1iVjlJK4h/2/nO6y224AFrh/GUfsNr4/4AlxPuYb8OU5oC5Lv+Ff2JiRDYtuNpyQSKAQp+bRYytWMtrmhja91h118Mbm90cUfcLPwkdiINgJNTXhPKg5Cqu3VYn0="
353 condition: $DEPLOY = 1
356 bucket: rust-lang-ci2
359 upload_dir: rustc-builds-alt
362 access_key_id: AKIAJVBODR3IA4O72THQ
364 secure: "kUGd3t7JcVWFESgIlzvsM8viZgCA9Encs3creW0xLJaLSeI1iVjlJK4h/2/nO6y224AFrh/GUfsNr4/4AlxPuYb8OU5oC5Lv+Ff2JiRDYtuNpyQSKAQp+bRYytWMtrmhja91h118Mbm90cUfcLPwkdiINgJNTXhPKg5Cqu3VYn0="
367 condition: $DEPLOY_ALT = 1