build_command: "ci/build-3-compile.sh"
branch_pattern: coverity_scan
-install:
- - ci/build-2-test-command.sh
- - ci/build-3-prepare-macos.sh
-
script:
- ci/build-4-compile.sh
- ci/run-tests.sh
- - ci/deploy-bintray.sh
-
-after_success:
- - ci/deploy-coveralls.sh
stages:
- test
name: test trusty
os: linux
dist: trusty
- before_install:
+ install:
- ci/build-1-autotools.sh
- name: test xenial
os: linux
dist: xenial
+ after_success:
+ - ci/deploy-coveralls.sh
- name: test macos
os: osx
+ install:
+ - ci/build-2-test-command.sh
+ - ci/build-3-prepare-macos.sh
#### STAGE: deploy
- stage: deploy
name: deploy
os: linux
dist: xenial
- env:
- - DO_DEPLOY=1
+ after_success:
+ - ci/deploy-bintray.sh
sudo ifconfig lo0 127.0.0.4/8 alias
sudo ifconfig lo0 127.0.0.5/8 alias
fi
-
-if [[ ! $PATH =~ /Users/dws/checkouts/fping/src ]]; then
- echo "# WARNING: must set PATH:"
- echo PATH=/Users/dws/checkouts/fping/src:\$PATH
-fi
set -e
-if [ -z "$DO_DEPLOY" ]; then
- echo "skip deploy (\$DO_DEPLOY not set)"
- 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
set -xe
pip install --user cpp-coveralls
-coveralls --root src --exclude src/optparse.c --gcov-options '\-lp'
+coveralls --build-root src --exclude src/optparse.c --exclude ci --exclude config.h --gcov-options '\-lp'