@@ -43,7 +43,7 @@ after_failure:
43
43
44
44
matrix :
45
45
include :
46
-
46
+
47
47
# ## Basic Tests ###
48
48
- &basic-vm
49
49
stage : " Basic"
@@ -128,7 +128,7 @@ matrix:
128
128
| ( grep -v -f .astyleignore || true ) \
129
129
| while read file; do astyle -n --options=.astylerc "${file}"; done
130
130
- git diff --exit-code --diff-filter=d --color
131
-
131
+
132
132
- << : *docs-vm
133
133
name : " spellcheck"
134
134
env : NAME=doxy-spellcheck
@@ -170,13 +170,41 @@ matrix:
170
170
find "(" -name "*.a" -or -name "*.ar" ")" -and -not -name "lib*" |
171
171
tee BUILD/badlibs |
172
172
sed -e "s/^/Bad library name found: /" && [ ! -s BUILD/badlibs ]
173
- # Assert that all assebler files are named correctly
173
+ # Assert that all assembler files are named correctly
174
174
# The strange command below asserts that there are exactly 0 libraries
175
175
# that do end with .s
176
176
- >
177
177
find -name "*.s" | tee BUILD/badasm |
178
178
sed -e "s/^/Bad Assembler file name found: /" && [ ! -s BUILD/badasm ]
179
179
180
+ - << : *docs-vm
181
+ name : " Frozen tools check"
182
+ env : NAME=frozen_tools_check
183
+ script :
184
+ # Reject any changes to tools that would require a re-release of the
185
+ # tools for the online compiler.
186
+ - >-
187
+ frozen_files=`\
188
+ git diff --name-only --diff-filter=d FETCH_HEAD..HEAD \
189
+ | egrep \
190
+ -e "^tools/build_api*" \
191
+ -e "^tools/config*" \
192
+ -e "^tools/export*" \
193
+ -e "^tools/notifier*" \
194
+ -e "^tools/paths*" \
195
+ -e "^tools/resources*" \
196
+ -e "^tools/targets*" \
197
+ -e "^tools/toolchains*" \
198
+ -e "^tools/utils*" \
199
+ -e "^$"`
200
+ if [ -z "$frozen_files" ]; then
201
+ echo "Success!";
202
+ else
203
+ echo -e "Failure: Frozen files were modified\n$frozen_files";
204
+ echo -e "Please see https://os.mbed.com/blog/entry/Introducing-the-new-Mbed-Tools/" \
205
+ "\nfor why we've frozen the legacy tools.";
206
+ false;
207
+ fi
180
208
181
209
# ## Python Tests ###
182
210
- &pytools-vm
@@ -225,7 +253,7 @@ matrix:
225
253
env : NAME=tools-py3.7
226
254
python : 3.7
227
255
228
-
256
+
229
257
# ## Extended Tests ###
230
258
- &extended-vm
231
259
stage : " Extended"
0 commit comments