File: .travis.yml

package info (click to toggle)
libpsl 0.20.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 49,956 kB
  • sloc: ansic: 2,383; python: 518; makefile: 260; sh: 226
file content (57 lines) | stat: -rw-r--r-- 1,943 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
sudo: false
dist: trusty

language: c

compiler:
  - gcc
  - clang-3.8

branches:
  only:
    - master
    - coveralls-text

env:
  - RUNTIME=libicu
  - RUNTIME=libidn2
  - RUNTIME=libidn
  - RUNTIME=no

addons:
  apt:
    packages:
      - automake
      - autoconf
      - autopoint
      - libtool
      - gtk-doc-tools
      - gettext
      - libidn11-dev
      - libidn2-0-dev
      - libicu-dev
      - libunistring-dev
      - lcov
      - clang-3.8
      - llvm-3.8-dev
      - llvm-dev
      - valgrind

script:
  - ./autogen.sh
#  CFI doesn't work out on Ubuntu 14.04 (Trusty). They don't include LLVMgold.so for clang-3.8.
#  clang-3.4 doesn't know CFI yet.
#  The only chance with Travis-CI is to switch to docker and use Ubuntu 16.04 or whatever.
#  - if [[ $CC == "gcc" ]]; then CFI=""; else CFI="--enable-cfi"; fi
  - if [[ $CC == "clang-3.8" ]]; then UBSAN="--enable-ubsan"; fi
  - ./configure $CFI --enable-asan $UBSAN && make -j4 && make check -j4
  - ./configure $CFI --enable-runtime=$RUNTIME --enable-builtin=libicu --enable-asan $UBSAN && make clean && make -j4 && make check -j4
  - ./configure $CFI --enable-runtime=$RUNTIME --enable-builtin=libidn2 --enable-asan $UBSAN && make clean && make -j4 && make check -j4
  - ./configure $CFI --enable-runtime=$RUNTIME --enable-builtin=libidn --enable-asan $UBSAN && make clean && make -j4 && make check -j4
  - ./configure $CFI --enable-runtime=$RUNTIME --disable-builtin --enable-asan $UBSAN && make clean && make -j4 && make check -j4
# libidn2 0.9.0 on Trusty has bugs, valgrinding the fuzz corpora fails
# so we use libicu here
  - if [[ $RUNTIME == "libicu" ]]; then VALGRIND="--enable-valgrind-tests"; fi
  - ./configure --enable-runtime=$RUNTIME --enable-builtin=libicu --enable-gtk-doc $VALGRIND && make clean && make -j4 && make check -j4 || cat fuzz/*_fuzzer.log
  - make distcheck
  - if [[ $CC == "gcc" && $RUNTIME == "libicu" ]]; then ./.travis_coveralls.sh; fi