]> granicus.if.org Git - esp-idf/commitdiff
CI: Make the list of examples permanent between jobs
authorAnton Maklakov <anton@espressif.com>
Thu, 20 Jul 2017 08:46:30 +0000 (16:46 +0800)
committerAnton Maklakov <anton@espressif.com>
Thu, 20 Jul 2017 08:46:49 +0000 (16:46 +0800)
Because the results of the 'find' command are not sorted by name.

tools/ci/build_examples.sh

index 14a8e9b425090f1e385c3125ba3c4daddf730784..65b82160fefbd4d63f6b4b347d98f8a0c6c5530a 100755 (executable)
@@ -134,7 +134,7 @@ build_example () {
 
 EXAMPLE_NUM=0
 
-find ${IDF_PATH}/examples/ -type f -name Makefile | \
+find ${IDF_PATH}/examples/ -type f -name Makefile | sort | \
 while read FN
 do
     if [[ $EXAMPLE_NUM -lt $START_NUM || $EXAMPLE_NUM -ge $END_NUM ]]