diff options
author | Thomas Graf <tgraf@suug.ch> | 2016-01-25 23:40:55 +0100 |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2016-01-25 23:40:55 +0100 |
commit | 1f79ea4396d4e1fb7d7042ab54552b33f082c7dc (patch) | |
tree | 094a1a355bd501f7f1ea011f603afc557cb1d8b8 | |
parent | 8dcd666db615694e43fd89113e5465b376768b79 (diff) | |
parent | 67b6ee3bd6f02fbfe23052d3c05ac93efc348441 (diff) |
Merge pull request #32 from Chocobo1/travis
Fix TravisCI script
-rw-r--r-- | .travis.yml | 44 |
1 files changed, 36 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml index 5a205a3..bac4cb1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,40 @@ -sudo: required -dist: trusty language: c + +os: + - linux + - osx + +env: + global: + - secure: "C87Pgf5AVDoyQfm9MIv81g" + compiler: - gcc - clang -before_install: - - sudo apt-get install libconfuse-dev - - sudo apt-get install libnl-3-dev libnl-route-3-dev - - sudo apt-get install libncurses-dev -# Change this to your needs -script: ./.travis/run.sh + +# container-based builds +sudo: false +addons: + apt: + 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 |