summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: cfe4901ea59114fefd4565349a5156c75ca5dc06 (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
# Travis CI configuration for libseccomp

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

dist: trusty
sudo: required

notifications:
  email:
    on_success: always
    on_failure: always

language: c
compiler: gcc

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

# NOTE: sudo is required for python/cython to work correctly

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

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

# run all of the tests independently, fail if any of the tests error
script:
  - (cd src; sudo make check)
  - (cd tests; sudo make check)
  - (cd tests; sudo ./regression -T live)