From 575d12d6a4e411f683aaf11561e57ea192dc344c Mon Sep 17 00:00:00 2001 From: Xingwang Liao Date: Wed, 17 Apr 2019 10:23:41 +0800 Subject: [PATCH] travis: Ignore unneeded builds Signed-off-by: Xingwang Liao --- .travis.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ba9bf85..372b98e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,6 +29,10 @@ env: - SDK_PATH=https://downloads.openwrt.org/snapshots/targets/x86/generic SDK=-sdk-x86-generic_ - SDK_PATH=https://downloads.openwrt.org/snapshots/targets/x86/64 SDK=-sdk-x86-64_ install: +- | + if [ -z "$TRAVIS_TAG" ] && [ "x$SDK" != "x-sdk-x86-64_" ] ; then + travis_terminate 0 + fi - mkdir -p "$DOWNLOAD_DIR" && cd "$DOWNLOAD_DIR" - wget -c "http://us.archive.ubuntu.com/ubuntu/pool/main/c/ccache/ccache_${CCACHE_VERSION}-1_amd64.deb" - mkdir -p "${HOME}/local" @@ -55,8 +59,8 @@ install: - export SDK_HOME="$(mktemp -d)" - cd "$SDK_HOME" - tar -Jxf "${DOWNLOAD_DIR}/${SDK_FILE}" --strip=1 -- \[ -d "${HOME}/dl" \] || mkdir -p "${HOME}/dl" -- \[ -d "dl" \] && rm -rf dl +- test -d "${HOME}/dl" || mkdir -p "${HOME}/dl" +- test -d "dl" && rm -rf dl - ln -s "${HOME}/dl/" dl - echo "src-git base https://github.com/openwrt/openwrt.git" >feeds.conf - echo "src-git packages https://github.com/openwrt/packages.git" >>feeds.conf