File: .travis.yml

package info (click to toggle)
ladvd 1.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,240 kB
  • sloc: ansic: 11,169; sh: 189; makefile: 184
file content (54 lines) | stat: -rw-r--r-- 1,366 bytes parent folder | download
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
language: c
compiler:
  - clang
  - gcc
os:
  - linux
matrix:
  include:
    - compiler: gcc
      os: linux
      env: GCOV=1
  exclude:
    - os: osx
      compiler: gcc

before_install:
  - echo "$TRAVIS_OS_NAME"
  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update -qq; fi
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi

install:
  - echo "$TRAVIS_OS_NAME"
  # Linux packages
  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then
    sudo apt-get install -qq libevent-dev libpcap-dev libcap-ng-dev libmnl-dev;
    sudo apt-get install -qq libpci-dev autotools-dev check pkg-config;
    sudo apt-get install -qq lsb-base pciutils;
    sudo apt-get install -qq slirp aufs-tools;
    fi
  # OSX packages
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then
    brew upgrade autoconf automake pkgconfig libtool || :;
    brew install libevent check || :;
    fi
  # coveralls
  - sudo pip install cpp-coveralls

before_script:
  - echo "$TRAVIS_OS_NAME"
  - autoreconf -i

script:
  - echo "$TRAVIS_OS_NAME"
  - CHECK="check"
  - if [ "$GCOV" = 1 ]; then
    FLAGS="$FLAGS --enable-gcov"; CHECK="check-uml";
    fi
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then CHECK=""; fi
  - ./configure $FLAGS && make && make $CHECK

after_success:
  - if [ "$GCOV" = 1 ]; then
    coveralls -b src -r src -e compat -e netif_bsd.c -E ".*\.h" --gcov-options "\-lp";
    fi