summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: bac4cb1c0bc07ef86c43e5862b6d8f45ae915f81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
language: c

os:
  - linux
  - osx

env:
  global:
    - secure: "C87Pgf5AVDoyQfm9MIv81g"

compiler:
  - gcc
  - clang

# 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