Browse Source

build,circleci: make BRANCH a variable

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
lilik-openwrt-22.03
Etienne Champetier 6 years ago
parent
commit
abf461a95a
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      .circleci/config.yml

+ 2
- 1
.circleci/config.yml View File

@ -6,6 +6,7 @@ jobs:
environment: environment:
- SDK_BASE_URL: "https://downloads.lede-project.org/snapshots/targets/ar71xx/generic" - SDK_BASE_URL: "https://downloads.lede-project.org/snapshots/targets/ar71xx/generic"
- SDK_FILE: "openwrt-sdk-ar71xx-generic_gcc-7.3.0_musl.Linux-x86_64.tar.xz" - SDK_FILE: "openwrt-sdk-ar71xx-generic_gcc-7.3.0_musl.Linux-x86_64.tar.xz"
- BRANCH: "master"
steps: steps:
- run: - run:
name: Download the SDK name: Download the SDK
@ -41,7 +42,7 @@ jobs:
name: Download & check & compile name: Download & check & compile
working_directory: ~/build_dir working_directory: ~/build_dir
command: | command: |
PKGS=$(cd ~/openwrt_packages; git diff --diff-filter=d --name-only "origin/master..." | grep 'Makefile$' | grep -v '/files/' | awk -F/ '{ print $(NF-1) }')
PKGS=$(cd ~/openwrt_packages; git diff --diff-filter=d --name-only "origin/$BRANCH..." | grep 'Makefile$' | grep -v '/files/' | awk -F/ '{ print $(NF-1) }')
echo "Packages: $PKGS" echo "Packages: $PKGS"
for PKG in $PKGS ; do for PKG in $PKGS ; do
make "package/$PKG/download" V=s make "package/$PKG/download" V=s


Loading…
Cancel
Save