Merge branch 'chore/update_ci_to_skip_example_common_components' into 'master'

ci: update CI compiling script to skip example common components

See merge request sdk/ESP8266_RTOS_SDK!1185
This commit is contained in:
Dong Heng
2019-11-19 11:01:55 +08:00
2 changed files with 2 additions and 3 deletions

View File

@ -166,7 +166,7 @@ build_example () {
EXAMPLE_NUM=0 EXAMPLE_NUM=0
EXAMPLE_PATHS=$( find ${IDF_PATH}/examples/ -type f -name Makefile | grep -v "/build_system/cmake/" | sort ) EXAMPLE_PATHS=$( find ${IDF_PATH}/examples/ -type f -name Makefile | grep -v "/components/" | grep -v "/common_components/" | grep -v "/main/" | grep -v "/build_system/cmake/" | sort )
for FN in ${EXAMPLE_PATHS} for FN in ${EXAMPLE_PATHS}
do do
if [[ $EXAMPLE_NUM -lt $START_NUM || $EXAMPLE_NUM -ge $END_NUM ]] if [[ $EXAMPLE_NUM -lt $START_NUM || $EXAMPLE_NUM -ge $END_NUM ]]

View File

@ -73,8 +73,7 @@ LOG_SUSPECTED=${LOG_PATH}/common_log.txt
touch ${LOG_SUSPECTED} touch ${LOG_SUSPECTED}
SDKCONFIG_DEFAULTS_CI=sdkconfig.ci SDKCONFIG_DEFAULTS_CI=sdkconfig.ci
EXAMPLE_PATHS=$( find ${IDF_PATH}/examples/ -type f -name CMakeLists.txt | grep -v "/components/" | grep -v "/main/" | sort ) EXAMPLE_PATHS=$( find ${IDF_PATH}/examples/ -type f -name CMakeLists.txt | grep -v "/components/" | grep -v "/common_components/" | grep -v "/main/" | grep -v "/build_system/cmake/" | sort )
if [ $# -eq 0 ] if [ $# -eq 0 ]
then then
START_NUM=0 START_NUM=0