summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 0a897cc517c806ea910bdffeae71c237ea456310 (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
41
42
43
44
45
# Travis CI configuration for libseccomp

# https://docs.travis-ci.com/user/trusty-ci-environment
# https://wiki.ubuntu.com/Releases

dist: trusty
sudo: false

notifications:
  email:
    on_success: always
    on_failure: always

language: c
compiler:
  - gcc

addons:
  apt:
    packages:
      - build-essential
      - python
      - python-dev
      - python-pip
      - valgrind
      - clang

# resolve any remaining dependency issues
before_install:
  # ubuntu 14.04 (trusty) has an old version of cython
  - pip install cython

# perform the build and fail immediately on error
install:
  - ./autogen.sh
  - ./configure --enable-python
  - make check-build

# run all of the tests independently, fail if any of the tests error
script:
  - (cd src; make check)
  - (cd tests; make check)
  - (cd tests; ./regression -T live)
  # ubuntu 14.04 (trusty) clang has problems with the cython generated code
  - make clean && ./configure && scan-build make