- secure: "CoI8hwHH1yfQoQxIfWGRS0WfTyScox+5aJn0fDDgz2uKrrIxmBvIw/WKX8wcSiV6fLmLuwgNkKqSM3hdO4qaG+JxfWcuEiZZHm+kxSGMkWbGb/fvAI+gHg8ldKyYttcIX71O5rlZiC2QpNKQi2v18S6pI5p8eqnx7DYx4YrmguQ="
compiler:
- gcc
-branches:
- only:
- - master
before_install:
- sudo apt-get install libcap2-bin
install:
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