From: David Schweikert Date: Fri, 4 Apr 2014 20:29:33 +0000 (+0200) Subject: build all branches with travis-ci X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4e0a6c89b00f2835d2f4a13271375d6c18bf196;p=fping.git build all branches with travis-ci --- 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