@@ -12,14 +12,19 @@ matrix:
1212 fast_finish : true
1313 include :
1414 # Images used in testing PR and try-build should be run first.
15- - env : IMAGE=x86_64-gnu-llvm-3.7 ALLOW_PR=1 RUST_BACKTRACE=1
16- - env : IMAGE=dist-x86_64-linux DEPLOY=1 ALLOW_TRY=1
15+ - env : IMAGE=x86_64-gnu-llvm-3.7 RUST_BACKTRACE=1
16+ if : type = pull_request OR branch = auto
17+
18+ - env : IMAGE=dist-x86_64-linux DEPLOY=1
19+ if : branch = try OR branch = auto
1720
1821 # "alternate" deployments, these are "nightlies" but don't have assertions
1922 # turned on, they're deployed to a different location primarily for projects
2023 # which are stuck on nightly and don't want llvm assertions in the artifacts
2124 # that they use.
2225 - env : IMAGE=dist-x86_64-linux DEPLOY_ALT=1
26+ if : branch = auto
27+
2328 - env : >
2429 RUST_CHECK_TARGET=dist
2530 RUST_CONFIGURE_ARGS="--enable-extended --enable-profiler"
@@ -31,6 +36,7 @@ matrix:
3136 NO_LLVM_ASSERTIONS=1
3237 os: osx
3338 osx_image: xcode7
39+ if: branch = auto
3440
3541 # macOS builders. These are placed near the beginning because they are very
3642 # slow to run.
@@ -50,6 +56,8 @@ matrix:
5056 NO_LLVM_ASSERTIONS=1
5157 os: osx
5258 osx_image: xcode8.2
59+ if: branch = auto
60+
5361 - env : >
5462 RUST_CHECK_TARGET=check
5563 RUST_CONFIGURE_ARGS=--build=i686-apple-darwin
@@ -61,6 +69,7 @@ matrix:
6169 NO_LLVM_ASSERTIONS=1
6270 os: osx
6371 osx_image: xcode8.2
72+ if: branch = auto
6473
6574 # OSX builders producing releases. These do not run the full test suite and
6675 # just produce a bunch of artifacts.
@@ -79,6 +88,8 @@ matrix:
7988 NO_LLVM_ASSERTIONS=1
8089 os: osx
8190 osx_image: xcode7
91+ if: branch = auto
92+
8293 - env : >
8394 RUST_CHECK_TARGET=dist
8495 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"
@@ -90,79 +101,92 @@ matrix:
90101 NO_LLVM_ASSERTIONS=1
91102 os: osx
92103 osx_image: xcode7
104+ if: branch = auto
93105
94106 # Linux builders, remaining docker images
95107 - env : IMAGE=arm-android
108+ if : branch = auto
96109 - env : IMAGE=armhf-gnu
110+ if : branch = auto
97111 - env : IMAGE=cross DEPLOY=1
112+ if : branch = auto
98113 - env : IMAGE=dist-aarch64-linux DEPLOY=1
114+ if : branch = auto
99115 - env : IMAGE=dist-android DEPLOY=1
116+ if : branch = auto
100117 - env : IMAGE=dist-arm-linux DEPLOY=1
118+ if : branch = auto
101119 - env : IMAGE=dist-armhf-linux DEPLOY=1
120+ if : branch = auto
102121 - env : IMAGE=dist-armv7-linux DEPLOY=1
122+ if : branch = auto
103123 - env : IMAGE=dist-fuchsia DEPLOY=1
124+ if : branch = auto
104125 - env : IMAGE=dist-i586-gnu-i686-musl DEPLOY=1
126+ if : branch = auto
105127 - env : IMAGE=dist-i686-freebsd DEPLOY=1
128+ if : branch = auto
106129 - env : IMAGE=dist-i686-linux DEPLOY=1
130+ if : branch = auto
107131 - env : IMAGE=dist-mips-linux DEPLOY=1
132+ if : branch = auto
108133 - env : IMAGE=dist-mips64-linux DEPLOY=1
134+ if : branch = auto
109135 - env : IMAGE=dist-mips64el-linux DEPLOY=1
136+ if : branch = auto
110137 - env : IMAGE=dist-mipsel-linux DEPLOY=1
138+ if : branch = auto
111139 - env : IMAGE=dist-powerpc-linux DEPLOY=1
140+ if : branch = auto
112141 - env : IMAGE=dist-powerpc64-linux DEPLOY=1
142+ if : branch = auto
113143 - env : IMAGE=dist-powerpc64le-linux DEPLOY=1
144+ if : branch = auto
114145 - env : IMAGE=dist-s390x-linux DEPLOY=1
146+ if : branch = auto
115147 - env : IMAGE=dist-x86_64-freebsd DEPLOY=1
148+ if : branch = auto
116149 - env : IMAGE=dist-x86_64-musl DEPLOY=1
150+ if : branch = auto
117151 - env : IMAGE=dist-x86_64-netbsd DEPLOY=1
152+ if : branch = auto
118153 - env : IMAGE=asmjs
154+ if : branch = auto
119155 - env : IMAGE=i686-gnu
156+ if : branch = auto
120157 - env : IMAGE=i686-gnu-nopt
158+ if : branch = auto
121159 # - env: IMAGE=wasm32 issue 42646
160+ # if: branch = auto
122161 - env : IMAGE=x86_64-gnu
162+ if : branch = auto
123163 - env : IMAGE=x86_64-gnu-full-bootstrap
164+ if : branch = auto
124165 - env : IMAGE=x86_64-gnu-aux
166+ if : branch = auto
125167 - env : IMAGE=x86_64-gnu-debug
168+ if : branch = auto
126169 - env : IMAGE=x86_64-gnu-nopt
170+ if : branch = auto
127171 - env : IMAGE=x86_64-gnu-distcheck
172+ if : branch = auto
128173 - env : IMAGE=x86_64-gnu-incremental
174+ if : branch = auto
129175
130176env :
131177 global :
132- - SCCACHE_BUCKET=rust-lang-ci-sccache
178+ - SCCACHE_BUCKET=rust-lang-ci-sccache2
179+ - SCCACHE_REGION=us-west-1
133180 - AWS_ACCESS_KEY_ID=AKIAJAMV3QAMMA6AXHFQ
134181 # AWS_SECRET_ACCESS_KEY=...
135182 - secure : " j96XxTVOSUf4s4r4htIxn/fvIa5DWbMgLqWl7r8z2QfgUwscmkMXAwXuFNc7s7bGTpV/+CgDiMFFM6BAFLGKutytIF6oA02s9b+usQYnM0th7YQ2AIgm9GtMTJCJp4AoyfFmh8F2faUICBZlfVLUJ34udHEe35vOklix+0k4WDo="
136183
137184before_install :
138- # If we are building a pull request, do the build if $ALLOW_PR == 1
139- # Otherwise, do the build if we are on the auto branch, or the try branch and $ALLOW_TRY == 1
140- - >
141- if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
142- if [[ "$ALLOW_PR" == "1" ]]; then
143- export SKIP_BUILD=false;
144- else
145- export SKIP_BUILD=true;
146- fi;
147- elif [[ "$TRAVIS_BRANCH" == "auto" || ( "$ALLOW_TRY" == "1" && "$TRAVIS_BRANCH" == "try" ) ]]; then
148- export SKIP_BUILD=false;
149- else
150- export SKIP_BUILD=true;
151- fi
152- - >
153- if [[ "$SKIP_BUILD" == false ]]; then
154- zcat $HOME/docker/rust-ci.tar.gz | docker load || true
155- fi
185+ - zcat $HOME/docker/rust-ci.tar.gz | docker load || true
156186 - mkdir -p $HOME/rustsrc
157187
158188install :
159- - >
160- if [[ "$SKIP_BUILD" == true ]]; then
161- echo echo skipping, not a full build > $HOME/stamp &&
162- chmod +x $HOME/stamp &&
163- export PATH=$PATH:$HOME;
164- else
165- case "$TRAVIS_OS_NAME" in
189+ - case "$TRAVIS_OS_NAME" in
166190 linux)
167191 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 &&
168192 chmod +x $HOME/stamp &&
@@ -178,8 +202,7 @@ install:
178202 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 &&
179203 chmod +x /usr/local/bin/stamp
180204 ;;
181- esac
182- fi
205+ esac
183206
184207before_script :
185208 - >
@@ -284,7 +307,7 @@ deploy:
284307 secure : " kUGd3t7JcVWFESgIlzvsM8viZgCA9Encs3creW0xLJaLSeI1iVjlJK4h/2/nO6y224AFrh/GUfsNr4/4AlxPuYb8OU5oC5Lv+Ff2JiRDYtuNpyQSKAQp+bRYytWMtrmhja91h118Mbm90cUfcLPwkdiINgJNTXhPKg5Cqu3VYn0="
285308 on :
286309 branch : try
287- condition : $DEPLOY = 1 && $ALLOW_TRY = 1
310+ condition : $DEPLOY = 1
288311
289312 # this is the same as the above deployment provider except that it uploads to
290313 # a slightly different directory and has a different trigger
0 commit comments