Skip to content

Commit 0d17639

Browse files
committed
ci: check that files generated by boards.txt.py are up to date
Files are re-generated in CI build, and git diff is used to check if there have been any changes.
1 parent ce90037 commit 0d17639

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

tests/common.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,16 @@ function build_package()
131131
./build_boards_manager_package.sh
132132
}
133133

134+
function build_boards()
135+
{
136+
echo -e "travis_fold:start:build_boards"
137+
tools/boards.txt.py --boardsgen --ldgen --packagegen --docgen
138+
git diff --exit-code -- boards.txt \
139+
package/package_esp8266com_index.template.json \
140+
doc/boards.rst \
141+
tools/sdk/ld/
142+
echo -e "travis_fold:end:build_boards"
143+
}
134144

135145
function install_platformio()
136146
{
@@ -217,7 +227,9 @@ elif [ "$BUILD_TYPE" = "docs" ]; then
217227
cd $TRAVIS_BUILD_DIR/doc
218228
build_docs
219229
elif [ "$BUILD_TYPE" = "package" ]; then
220-
# Build release package
230+
# Check that boards.txt, ld scripts, package JSON template, and boards.rst are up to date
231+
build_boards
232+
# Build release package
221233
cd $TRAVIS_BUILD_DIR/package
222234
build_package
223235
elif [ "$BUILD_TYPE" = "host_tests" ]; then

0 commit comments

Comments
 (0)