Merge pull request #196 from schweikert/travis-improvements
Travis CI improvements, add macos testingcoverity_scan
commit
d06b8fcea3
@ -1,40 +1,71 @@
|
|||||||
# travis-ci.org configuration
|
|
||||||
#
|
|
||||||
language: generic
|
language: generic
|
||||||
sudo: required
|
|
||||||
dist: trusty
|
os:
|
||||||
|
- linux
|
||||||
|
|
||||||
|
dist:
|
||||||
|
- trusty
|
||||||
|
- xenial
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- secure: "CoI8hwHH1yfQoQxIfWGRS0WfTyScox+5aJn0fDDgz2uKrrIxmBvIw/WKX8wcSiV6fLmLuwgNkKqSM3hdO4qaG+JxfWcuEiZZHm+kxSGMkWbGb/fvAI+gHg8ldKyYttcIX71O5rlZiC2QpNKQi2v18S6pI5p8eqnx7DYx4YrmguQ="
|
- secure: "CoI8hwHH1yfQoQxIfWGRS0WfTyScox+5aJn0fDDgz2uKrrIxmBvIw/WKX8wcSiV6fLmLuwgNkKqSM3hdO4qaG+JxfWcuEiZZHm+kxSGMkWbGb/fvAI+gHg8ldKyYttcIX71O5rlZiC2QpNKQi2v18S6pI5p8eqnx7DYx4YrmguQ="
|
||||||
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
|
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
|
||||||
# via the "travis encrypt" command using the project repo's public key
|
# via the "travis encrypt" command using the project repo's public key
|
||||||
- secure: "C9ZJ9LYnuowRdF4D66KLfquimvu8GtRGIafwvCcGYKReEy8phlBdFsHlybkMBNYJNTJSM0j6wyo1lKTVGHxmpQDimjR7kmxUtawbhuJ5qOCBtFqNVh9lRQi7hC4+UOhvRsIcbV8HAJM5u/5RxGOfXCePK3a2DtiYv1d2NHToZN8="
|
- secure: "C9ZJ9LYnuowRdF4D66KLfquimvu8GtRGIafwvCcGYKReEy8phlBdFsHlybkMBNYJNTJSM0j6wyo1lKTVGHxmpQDimjR7kmxUtawbhuJ5qOCBtFqNVh9lRQi7hC4+UOhvRsIcbV8HAJM5u/5RxGOfXCePK3a2DtiYv1d2NHToZN8="
|
||||||
|
|
||||||
compiler:
|
compiler:
|
||||||
- gcc
|
- gcc
|
||||||
before_install:
|
|
||||||
- sudo apt-get update -qq
|
|
||||||
- sudo apt-get install libcap2-bin
|
|
||||||
#- sudo apt-get install traceroute
|
|
||||||
#- traceroute google.com
|
|
||||||
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
|
|
||||||
install:
|
|
||||||
- ci/build-1-autotools.sh
|
|
||||||
- curl -L http://cpanmin.us | perl - --sudo App::cpanminus
|
|
||||||
- cpanm --sudo Test::Command
|
|
||||||
script:
|
|
||||||
- ci/build-2-install.sh
|
|
||||||
- env PATH=`pwd`/src:$PATH prove ci/test-*.pl
|
|
||||||
- ci/test-tarball.sh
|
|
||||||
after_success:
|
|
||||||
- ci/coveralls.sh
|
|
||||||
- ci/deploy-bintray.sh
|
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
|
apt:
|
||||||
|
update: true
|
||||||
|
packages:
|
||||||
|
- libcap2-bin
|
||||||
|
- libtest-command-perl
|
||||||
coverity_scan:
|
coverity_scan:
|
||||||
project:
|
project:
|
||||||
name: "schweikert/fping"
|
name: "schweikert/fping"
|
||||||
description: "Build submitted via Travis CI"
|
description: "Build submitted via Travis CI"
|
||||||
notification_email: david@schweikert.ch
|
notification_email: david@schweikert.ch
|
||||||
#build_command_prepend: "ci/build-2-install.sh"
|
build_command: "ci/build-3-compile.sh"
|
||||||
build_command: "ci/build-2-install.sh"
|
|
||||||
branch_pattern: coverity_scan
|
branch_pattern: coverity_scan
|
||||||
|
|
||||||
|
script:
|
||||||
|
- ci/build-4-compile.sh
|
||||||
|
- ci/run-tests.sh
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- test
|
||||||
|
- name: deploy
|
||||||
|
if: branch = master OR branch = v4.x
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
include:
|
||||||
|
#### STAGE: test
|
||||||
|
- stage: test
|
||||||
|
name: test trusty
|
||||||
|
os: linux
|
||||||
|
dist: trusty
|
||||||
|
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
|
||||||
|
after_success:
|
||||||
|
- ci/deploy-bintray.sh
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
curl -L http://cpanmin.us | perl - --sudo App::cpanminus
|
||||||
|
cpanm --sudo Test::Command
|
||||||
|
|
@ -1,13 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -x
|
|
||||||
|
|
||||||
sudo -H pip install cpp-coveralls
|
|
||||||
|
|
||||||
cd src
|
|
||||||
|
|
||||||
ls -l
|
|
||||||
|
|
||||||
gcov *.o
|
|
||||||
cd ..
|
|
||||||
coveralls --exclude ci --exclude src/optparse.c --no-gcov
|
|
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -xe
|
||||||
|
|
||||||
|
pip install --user cpp-coveralls
|
||||||
|
coveralls --build-root src --exclude src/optparse.c --exclude ci --exclude config.h --gcov-options '\-lp'
|
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
PATH=`pwd`/src:$PATH
|
||||||
|
|
||||||
|
prove ci/test-*.pl
|
||||||
|
ci/test-tarball.sh
|
Loading…
Reference in New Issue