Skip to content

Commit 682e53b

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 2361539 commit 682e53b

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
@@ -122,6 +122,16 @@ function build_package()
122122
./build_boards_manager_package.sh
123123
}
124124

125+
function build_boards()
126+
{
127+
echo -e "travis_fold:start:build_boards"
128+
tools/boards.txt.py --boardsgen --ldgen --packagegen --docgen
129+
git diff --exit-code -- boards.txt \
130+
package/package_esp8266com_index.template.json \
131+
doc/boards.rst \
132+
tools/sdk/ld/
133+
echo -e "travis_fold:end:build_boards"
134+
}
125135

126136
function install_platformio()
127137
{
@@ -208,7 +218,9 @@ elif [ "$BUILD_TYPE" = "docs" ]; then
208218
cd $TRAVIS_BUILD_DIR/doc
209219
build_docs
210220
elif [ "$BUILD_TYPE" = "package" ]; then
211-
# Build release package
221+
# Check that boards.txt, ld scripts, package JSON template, and boards.rst are up to date
222+
build_boards
223+
# Build release package
212224
cd $TRAVIS_BUILD_DIR/package
213225
build_package
214226
elif [ "$BUILD_TYPE" = "host_tests" ]; then

0 commit comments

Comments
 (0)