aboutsummaryrefslogtreecommitdiff
path: root/.circleci
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2019-11-06 08:57:15 +0000
committerYousong Zhou <yszhou4tech@gmail.com>2019-11-06 20:38:47 +0800
commit4f3244db40364163c0213adfbc0507695d937657 (patch)
treec576b5db8a6323cd3591c6e5c12b6a9abeba8cf5 /.circleci
parenta5cda7269b2821bd4a850614cf062872ccbf479d (diff)
circleci: skip compiling packages not enabled
E.g. some packages are target, or arch specific, skip compiling them if they cannot be enabled for current sdk. This should reduce false positives for packages like docker-ce etc. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to '.circleci')
1 files changed, 9 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 8b28976f9..014c09b04 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -148,7 +148,16 @@ jobs:
echo_green "=> Package check OK"
done
+ make \
+ -f .config \
+ -f tmp/.packagedeps \
+ -f <(echo '$(info $(sort $(package-y) $(package-m)))'; echo -en 'a:\n\t@:') \
+ | tr ' ' '\n' >enabled-package-subdirs.txt
for PKG in $PKGS ; do
+ if ! grep -m1 -qE "(^|/)$PKG$" enabled-package-subdirs.txt; then
+ echo_red "===+ Building: $PKG skipped. It cannot be enabled with $SDK_FILE"
+ continue
+ fi
echo_blue "===+ Building: $PKG"
make "package/$PKG/compile" -j3 V=s || {
RET=$?