build: only install changed packages
authorPaul Spooren <mail@aparcar.org>
Sun, 7 Jul 2019 20:17:44 +0000 (22:17 +0200)
committerPaul Spooren <mail@aparcar.org>
Mon, 8 Jul 2019 14:55:07 +0000 (16:55 +0200)
Installing all packages via ./scripts/feeds install -a produces a lot of
error messages, it is also possible to only install the packages which
were touched by the PR.

Signed-off-by: Paul Spooren <mail@aparcar.org>
.circleci/config.yml

index 02a87146d91f19638bfbfc1fbc46913256cf358d..a59ac1281b1a84afecf8ba2ada1ce8f0ed0df730 100644 (file)
@@ -81,13 +81,12 @@ jobs:
              EOF
              cat feeds.conf
              ./scripts/feeds update -a > /dev/null
-             ./scripts/feeds install -a > /dev/null
              make defconfig > /dev/null
              # enable BUILD_LOG
              sed -i 's/# CONFIG_BUILD_LOG is not set/CONFIG_BUILD_LOG=y/' .config
 
       - run:
-          name: Download source, check package, compile
+          name: Install & download source, check package, compile
           working_directory: ~/build_dir
           command: |
              set +o pipefail
@@ -99,6 +98,9 @@ jobs:
 
              echo_blue "=== Found new/modified packages: $PKGS"
              for PKG in $PKGS ; do
+                 echo_blue "===+ Install: $PKG"
+                 ./scripts/feeds install "$PKG"
+
                  echo_blue "===+ Download: $PKG"
                  make "package/$PKG/download" V=s