Skip to content

Commit

Permalink
travis: Ignore unneeded builds
Browse files Browse the repository at this point in the history
Signed-off-by: Xingwang Liao <kuoruan@gmail.com>
  • Loading branch information
kuoruan committed Apr 17, 2019
1 parent 0c7dd27 commit 575d12d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 575d12d

Please sign in to comment.