From abf461a95aa828c4abfda5e96e2a878620740a8f Mon Sep 17 00:00:00 2001 From: Etienne Champetier Date: Mon, 29 Oct 2018 20:18:48 -0400 Subject: [PATCH] build,circleci: make BRANCH a variable Signed-off-by: Etienne Champetier --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5a80ab2c1..facad6f51 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,6 +6,7 @@ jobs: environment: - 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" + - BRANCH: "master" steps: - run: name: Download the SDK @@ -41,7 +42,7 @@ jobs: name: Download & check & compile working_directory: ~/build_dir 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" for PKG in $PKGS ; do make "package/$PKG/download" V=s