From 667b1dd4d3cf7433e4ced8115680894eba40626e Mon Sep 17 00:00:00 2001 From: Dong Heng Date: Tue, 19 Nov 2019 10:51:45 +0800 Subject: [PATCH] chore(ci): update CI compiling script to skip example common components --- tools/ci/build_examples.sh | 2 +- tools/ci/build_examples_cmake.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/ci/build_examples.sh b/tools/ci/build_examples.sh index 032e336c..f4557649 100755 --- a/tools/ci/build_examples.sh +++ b/tools/ci/build_examples.sh @@ -166,7 +166,7 @@ build_example () { 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} do if [[ $EXAMPLE_NUM -lt $START_NUM || $EXAMPLE_NUM -ge $END_NUM ]] diff --git a/tools/ci/build_examples_cmake.sh b/tools/ci/build_examples_cmake.sh index 90bfa36f..53edbacb 100755 --- a/tools/ci/build_examples_cmake.sh +++ b/tools/ci/build_examples_cmake.sh @@ -73,8 +73,7 @@ LOG_SUSPECTED=${LOG_PATH}/common_log.txt touch ${LOG_SUSPECTED} 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 ] then START_NUM=0