From d4e0a6c89b00f2835d2f4a13271375d6c18bf196 Mon Sep 17 00:00:00 2001 From: David Schweikert Date: Fri, 4 Apr 2014 22:29:33 +0200 Subject: [PATCH] build all branches with travis-ci --- .travis.yml | 3 --- ci/deploy-bintray.sh | 6 ++++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3cb7d1c..4b301cc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,9 +5,6 @@ env: - secure: "CoI8hwHH1yfQoQxIfWGRS0WfTyScox+5aJn0fDDgz2uKrrIxmBvIw/WKX8wcSiV6fLmLuwgNkKqSM3hdO4qaG+JxfWcuEiZZHm+kxSGMkWbGb/fvAI+gHg8ldKyYttcIX71O5rlZiC2QpNKQi2v18S6pI5p8eqnx7DYx4YrmguQ=" compiler: - gcc -branches: - only: - - master before_install: - sudo apt-get install libcap2-bin install: diff --git a/ci/deploy-bintray.sh b/ci/deploy-bintray.sh index 1dfef48..2c34a08 100755 --- a/ci/deploy-bintray.sh +++ b/ci/deploy-bintray.sh @@ -10,6 +10,12 @@ if [ "$CC" != "gcc" ]; then exit 0 fi +# do this only for the master branch +if [ "$TRAVIS_BRANCH" != "master" ]; then + echo "skipped upload branch $TRAVIS_BRANCH isn't master" + exit 0 +fi + VERSION=$(ls fping-*.tar.gz | sed -e 's/^fping-//' | sed -e 's/\.tar\.gz$//') if [[ "$VERSION" =~ ^[0-9]+\.[0-9]+$ ]]; then REPO=release -- 2.43.0