File tree 3 files changed +12
-10
lines changed
src/ci/docker/x86_64-gnu-tools
3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -13,16 +13,16 @@ matrix:
13
13
include :
14
14
# Images used in testing PR and try-build should be run first.
15
15
- 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
17
17
18
18
- env : IMAGE=dist-x86_64-linux DEPLOY=1
19
- if : branch = try OR branch = auto
19
+ if : branch = try AND branch = auto
20
20
21
21
# "alternate" deployments, these are "nightlies" but have LLVM assertions
22
22
# turned on, they're deployed to a different location primarily for
23
23
# additional testing.
24
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
25
+ if : branch = try AND branch = auto
26
26
27
27
- env : >
28
28
RUST_CHECK_TARGET=dist
@@ -169,15 +169,15 @@ matrix:
169
169
- env : IMAGE=x86_64-gnu-aux
170
170
if : branch = auto
171
171
- env : IMAGE=x86_64-gnu-tools
172
- if : branch = auto
172
+ if : branch = try
173
173
- env : IMAGE=x86_64-gnu-debug
174
174
if : branch = auto
175
175
- env : IMAGE=x86_64-gnu-nopt
176
176
if : branch = auto
177
177
- env : IMAGE=x86_64-gnu-distcheck
178
178
if : branch = auto
179
179
- env : IMAGE=mingw-check
180
- if : type = pull_request OR branch = auto
180
+ if : type = pull_request AND branch = auto
181
181
182
182
- stage : publish toolstate
183
183
if : branch = master AND type = push
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ touch "$TOOLSTATE_FILE"
26
26
# Try to test all the tools and store the build/test success in the TOOLSTATE_FILE
27
27
28
28
set +e
29
- python2.7 " $X_PY " test --no-fail-fast \
29
+ echo python2.7 " $X_PY " test --no-fail-fast \
30
30
src/doc/book \
31
31
src/doc/nomicon \
32
32
src/doc/reference \
Original file line number Diff line number Diff line change @@ -60,12 +60,14 @@ commit_toolstate_change() {
60
60
OLDFLAGS=" $- "
61
61
set -eu
62
62
63
+ BRANCH=test
64
+
63
65
git config --global user.email ' 7378925+rust-toolstate-update@users.noreply.github.com'
64
66
git config --global user.name ' Rust Toolstate Update'
65
67
git config --global credential.helper store
66
68
printf ' https://%s:x-oauth-basic@github.com\n' " $TOOLSTATE_REPO_ACCESS_TOKEN " \
67
69
> " $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
69
71
70
72
cd rust-toolstate
71
73
FAILURE=1
@@ -77,10 +79,10 @@ commit_toolstate_change() {
77
79
FAILURE=0
78
80
git commit -a -F " $MESSAGE_FILE " || break
79
81
# 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)
81
83
FAILURE=1
82
- git fetch origin master
83
- git reset --hard origin/master
84
+ git fetch origin $BRANCH
85
+ git reset --hard origin/$BRANCH
84
86
done
85
87
cd ..
86
88
You can’t perform that action at this time.
0 commit comments