File: .travis.yml

package info (click to toggle)
icecc 1.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,444 kB
  • sloc: cpp: 13,720; sh: 2,949; ansic: 767; xml: 744; makefile: 233; asm: 2
file content (102 lines) | stat: -rw-r--r-- 2,887 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
language: cpp

script:
  - |
  - ./autogen.sh
  - ./configure --prefix=$PWD/_inst
  - make -s -j $(getconf _NPROCESSORS_ONLN)
  - |
        if test "$TRAVIS_OS_NAME" = "linux"; then
            strict="-strict"
            if test -n "$VALGRIND"; then
                # See tests/README.
                sudo /sbin/setcap cap_sys_chroot+ep /usr/lib/valgrind/memcheck-amd64-linux
            fi
            make -s test${strict} VALGRIND=$VALGRIND TESTCC=gcc TESTCXX=g++
            if test $? -ne 0; then
                exit 1
            fi
            make -s test${strict} VALGRIND=$VALGRIND TESTCC=clang TESTCXX=clang++
            if test $? -ne 0; then
                exit 1
            fi
        elif test "$TRAVIS_OS_NAME" = "osx"; then
            if test -n "$STRICTTESTS"; then
                strict="-strict"
            fi
            make -s test${strict} TESTCC=clang TESTCXX=clang++
            if test $? -ne 0; then
                exit 1
            fi
        fi
        make -s dist
        if test $? -ne 0; then
            exit 1
        fi

matrix:
  include:
  - os: linux
    sudo: true # for setcap so we can run the tests in chroot.
    compiler: gcc
    dist: xenial
  - os: linux
    sudo: true # for setcap so we can run the tests in chroot.
    compiler: clang
    dist: xenial
  - os: osx
    before_install:
      - brew update
      - brew install lzo zstd docbook2x gdb ccache libarchive expect telnet
  - os: linux
    sudo: true # for setcap so we can run the tests in chroot.
    compiler: clang
    env: VALGRIND=1
    dist: xenial
  - os: linux
    sudo: true # for setcap so we can run the tests in chroot.
    compiler: clang
    env: BUILD_TYPE=ubsan
    dist: xenial
  allow_failures:

before_script:
  - |
     if [ "$BUILD_TYPE" == "ubsan" ]; then
         export SAN_FLAGS="-fsanitize=undefined -fno-omit-frame-pointer"
         export LDFLAGS="$UBSAN_FLAGS ${LDFLAGS}"
         export UBSAN_OPTIONS=print_stacktrace=1
     fi
  - |
     # Without this, sanitizers don't work at all for whatever reason (BFD ld too old?).
     if [ "$TRAVIS_OS_NAME" == "linux" -a -n "$SAN_FLAGS" ]; then
         export LDFLAGS="${LDFLAGS} -fuse-ld=gold"
     fi
  - |
     if [ "$TRAVIS_OS_NAME" == "osx" ]; then
         export LDFLAGS="${LDFLAGS} -L/usr/local/opt/libarchive/lib"
         export CPPFLAGS="${CPPFLAGS} -I/usr/local/opt/libarchive/include"
         export PKG_CONFIG_PATH="/usr/local/opt/libarchive/lib/pkgconfig"
     fi
  - |
      export CFLAGS="${SAN_FLAGS} ${CFLAGS} -Wall -Wextra"
      export CXXFLAGS="${SAN_FLAGS} ${CXXFLAGS} -Wall -Wextra"
      export LDFLAGS="${SAN_FLAGS} ${LDFLAGS}"


addons:
  apt:
    packages:
    - gcc
    - clang
    - libcap-ng-dev
    - libcap-ng-utils
    - liblzo2-dev
    - libzstd1-dev
    - docbook2x
    - realpath
    - gdb
    - valgrind
    - libarchive-dev
    - expect
    - telnet