diff options
author | Paul Moore <paul@paul-moore.com> | 2017-02-06 10:19:54 -0500 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2017-02-06 10:19:54 -0500 |
commit | dad12c55d5aa16553fbb20bd0ea84fddb6c66e8a (patch) | |
tree | 7bab91b74ee8b99e00cf891b856dfb5cbc37c780 | |
parent | e657a520e7ecead7a81615a4dfbed9040651f2a1 (diff) | |
download | libseccomp-dad12c55d5aa16553fbb20bd0ea84fddb6c66e8a.tar.gz |
build: update the Travis CI configuration
Two major changes: don't require sudo (allows the use of the Travis
container infrastructure) and run the clang static analyzer as one
of the tests.
Signed-off-by: Paul Moore <paul@paul-moore.com>
(imported from commit d3afeac428d5b1556a5abf17821a00d6984212eb)
-rw-r--r-- | .travis.yml | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/.travis.yml b/.travis.yml index cfe4901..0a897cc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ # https://wiki.ubuntu.com/Releases dist: trusty -sudo: required +sudo: false notifications: email: @@ -12,7 +12,8 @@ notifications: on_failure: always language: c -compiler: gcc +compiler: + - gcc addons: apt: @@ -22,22 +23,23 @@ addons: - python-dev - python-pip - valgrind - -# NOTE: sudo is required for python/cython to work correctly + - clang # resolve any remaining dependency issues before_install: # ubuntu 14.04 (trusty) has an old version of cython - - sudo pip install cython + - pip install cython # perform the build and fail immediately on error install: - - sudo ./autogen.sh - - sudo ./configure --enable-python - - sudo make check-build + - ./autogen.sh + - ./configure --enable-python + - 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) + - (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 |