File tree Expand file tree Collapse file tree 3 files changed +12
-10
lines changed
src/ci/docker/x86_64-gnu-tools Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -13,16 +13,16 @@ matrix:
1313 include :
1414 # Images used in testing PR and try-build should be run first.
1515 - env : IMAGE=x86_64-gnu-llvm-3.9 RUST_BACKTRACE=1
16- if : type = pull_request OR branch = auto
16+ if : type = pull_request AND branch = auto
1717
1818 - env : IMAGE=dist-x86_64-linux DEPLOY=1
19- if : branch = try OR branch = auto
19+ if : branch = try AND branch = auto
2020
2121 # "alternate" deployments, these are "nightlies" but have LLVM assertions
2222 # turned on, they're deployed to a different location primarily for
2323 # additional testing.
2424 - env : IMAGE=dist-x86_64-linux DEPLOY_ALT=1 CI_JOB_NAME=dist-x86_64-linux-alt
25- if : branch = try OR branch = auto
25+ if : branch = try AND branch = auto
2626
2727 - env : >
2828 RUST_CHECK_TARGET=dist
@@ -169,15 +169,15 @@ matrix:
169169 - env : IMAGE=x86_64-gnu-aux
170170 if : branch = auto
171171 - env : IMAGE=x86_64-gnu-tools
172- if : branch = auto
172+ if : branch = try
173173 - env : IMAGE=x86_64-gnu-debug
174174 if : branch = auto
175175 - env : IMAGE=x86_64-gnu-nopt
176176 if : branch = auto
177177 - env : IMAGE=x86_64-gnu-distcheck
178178 if : branch = auto
179179 - env : IMAGE=mingw-check
180- if : type = pull_request OR branch = auto
180+ if : type = pull_request AND branch = auto
181181
182182 - stage : publish toolstate
183183 if : branch = master AND type = push
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ touch "$TOOLSTATE_FILE"
2626# Try to test all the tools and store the build/test success in the TOOLSTATE_FILE
2727
2828set +e
29- python2.7 " $X_PY " test --no-fail-fast \
29+ echo python2.7 " $X_PY " test --no-fail-fast \
3030 src/doc/book \
3131 src/doc/nomicon \
3232 src/doc/reference \
Original file line number Diff line number Diff line change @@ -60,12 +60,14 @@ commit_toolstate_change() {
6060 OLDFLAGS=" $- "
6161 set -eu
6262
63+ BRANCH=test
64+
6365 git config --global user.email ' 7378925+rust-toolstate-update@users.noreply.github.com'
6466 git config --global user.name ' Rust Toolstate Update'
6567 git config --global credential.helper store
6668 printf ' https://%s:x-oauth-basic@github.com\n' " $TOOLSTATE_REPO_ACCESS_TOKEN " \
6769 > " $HOME /.git-credentials"
68- git clone --depth=1 https://github.com/rust-lang-nursery/rust-toolstate.git
70+ git clone --depth=1 https://github.com/rust-lang-nursery/rust-toolstate.git -b $BRANCH
6971
7072 cd rust-toolstate
7173 FAILURE=1
@@ -77,10 +79,10 @@ commit_toolstate_change() {
7779 FAILURE=0
7880 git commit -a -F " $MESSAGE_FILE " || break
7981 # On failure randomly sleep for 0 to 3 seconds as a crude way to introduce jittering.
80- git push origin master && break || sleep $( LC_ALL=C tr -cd 0-3 < /dev/urandom | head -c 1)
82+ git push origin $BRANCH && break || sleep $( LC_ALL=C tr -cd 0-3 < /dev/urandom | head -c 1)
8183 FAILURE=1
82- git fetch origin master
83- git reset --hard origin/master
84+ git fetch origin $BRANCH
85+ git reset --hard origin/$BRANCH
8486 done
8587 cd ..
8688
You can’t perform that action at this time.
0 commit comments