Skip to content

Commit c90cc12

Browse files
committed
ci: move validate-toolstate.sh in the mingw-check image
The task was already run just there, so this cleans things up.
1 parent e209ee4 commit c90cc12

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

src/ci/azure-pipelines/steps/run.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -139,14 +139,6 @@ steps:
139139
condition: and(succeeded(), not(variables.SKIP_JOB))
140140
displayName: Install awscli
141141

142-
# As a quick smoke check on the otherwise very fast mingw-check linux builder
143-
# check our own internal scripts.
144-
- bash: src/ci/scripts/validate-toolstate.sh
145-
env:
146-
TOOLSTATE_REPO_ACCESS_TOKEN: $(TOOLSTATE_REPO_ACCESS_TOKEN)
147-
condition: and(succeeded(), not(variables.SKIP_JOB), eq(variables['IMAGE'], 'mingw-check'))
148-
displayName: Verify the publish_toolstate script works
149-
150142
- bash: src/ci/scripts/run-build-from-ci.sh
151143
timeoutInMinutes: 600
152144
env:

src/ci/docker/mingw-check/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1919
COPY scripts/sccache.sh /scripts/
2020
RUN sh /scripts/sccache.sh
2121

22+
COPY mingw-check/validate-toolstate.sh /scripts/
23+
2224
ENV RUN_CHECK_WITH_PARALLEL_QUERIES 1
2325
ENV SCRIPT python2.7 ../x.py check --target=i686-pc-windows-gnu --host=i686-pc-windows-gnu && \
2426
python2.7 ../x.py build --stage 0 src/tools/build-manifest && \
25-
python2.7 ../x.py test --stage 0 src/tools/compiletest
27+
python2.7 ../x.py test --stage 0 src/tools/compiletest && \
28+
/scripts/validate-toolstate.sh

src/ci/scripts/validate-toolstate.sh renamed to src/ci/docker/mingw-check/validate-toolstate.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@
44
set -euo pipefail
55
IFS=$'\n\t'
66

7-
source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
8-
7+
rm -rf rust-toolstate
98
git clone --depth=1 https://github.com/rust-lang-nursery/rust-toolstate.git
109
cd rust-toolstate
11-
python2.7 "${BUILD_SOURCESDIRECTORY}/src/tools/publish_toolstate.py" "$(git rev-parse HEAD)" "$(git log --format=%s -n1 HEAD)" "" ""
10+
python2.7 "../../src/tools/publish_toolstate.py" "$(git rev-parse HEAD)" \
11+
"$(git log --format=%s -n1 HEAD)" "" ""
1212
# Only check maintainers if this build is supposed to publish toolstate.
1313
# Builds that are not supposed to publish don't have the access token.
1414
if [ -n "${TOOLSTATE_PUBLISH+is_set}" ]; then
15-
TOOLSTATE_VALIDATE_MAINTAINERS_REPO=rust-lang/rust python2.7 "${BUILD_SOURCESDIRECTORY}/src/tools/publish_toolstate.py"
15+
TOOLSTATE_VALIDATE_MAINTAINERS_REPO=rust-lang/rust python2.7 \
16+
"../../src/tools/publish_toolstate.py"
1617
fi
1718
cd ..
1819
rm -rf rust-toolstate

0 commit comments

Comments
 (0)