File tree 1 file changed +7
-0
lines changed
src/ci/docker/x86_64-gnu-tools
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ SIX_WEEK_CYCLE="$(( ($(date +%s) / 604800 - 3) % 6 ))"
23
23
24
24
touch " $TOOLSTATE_FILE "
25
25
26
+ # Try to test all the tools and store the build/test success in the TOOLSTATE_FILE
27
+
26
28
set +e
27
29
python2.7 " $X_PY " test --no-fail-fast \
28
30
src/doc/book \
38
40
cat " $TOOLSTATE_FILE "
39
41
echo
40
42
43
+ # This function checks that if a tool's submodule changed, the tool's state must improve
41
44
verify_status () {
42
45
echo " Verifying status of $1 ..."
43
46
if echo " $CHANGED_FILES " | grep -q " ^M[[:blank:]]$2 $" ; then
@@ -57,6 +60,7 @@ verify_status() {
57
60
fi
58
61
}
59
62
63
+ # deduplicates the submodule check and the assertion that on beta some tools MUST be passing
60
64
check_dispatch () {
61
65
if [ " $1 " = submodule_changed ]; then
62
66
# ignore $2 (branch id)
@@ -69,6 +73,7 @@ check_dispatch() {
69
73
fi
70
74
}
71
75
76
+ # list all tools here
72
77
status_check () {
73
78
check_dispatch $1 beta book src/doc/book
74
79
check_dispatch $1 beta nomicon src/doc/nomicon
@@ -103,4 +108,6 @@ $COMMIT\t$(cat "$TOOLSTATE_FILE")
103
108
exit 0
104
109
fi
105
110
111
+ # abort compilation if an important tool doesn't build
112
+ # (this code is reachable if not on the nightly channel)
106
113
status_check " beta_required"
You can’t perform that action at this time.
0 commit comments