Merge pull request #32 from Chocobo1/travis

Fix TravisCI script
This commit is contained in:
Thomas Graf 2016-01-25 23:40:55 +01:00
commit 1f79ea4396

View File

@ -1,12 +1,40 @@
sudo: required
dist: trusty
language: c language: c
os:
- linux
- osx
env:
global:
- secure: "C87Pgf5AVDoyQfm9MIv81g"
compiler: compiler:
- gcc - gcc
- clang - clang
before_install:
- sudo apt-get install libconfuse-dev # container-based builds
- sudo apt-get install libnl-3-dev libnl-route-3-dev sudo: false
- sudo apt-get install libncurses-dev addons:
# Change this to your needs apt:
script: ./.travis/run.sh packages:
# packages list: https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
- libconfuse-dev
- libncurses5-dev
- libnl-3-dev
- libnl-route-3-dev
coverity_scan:
project:
name: "tgraf/bmon"
description: "bandwidth monitor"
notification_email: tgraf@suug.ch
build_command_prepend: "./autogen.sh && ./configure"
build_command: "make -j2"
branch_pattern: coverity_scan
install:
- if [ "$TRAVIS_BRANCH" = "coverity_scan" ] && ! [ "$TRAVIS_OS_NAME" = "linux" -a "$CC" = "gcc" ]; then exit ; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update > /dev/null && brew install confuse ; fi
script:
- ./.travis/run.sh