From dad12c55d5aa16553fbb20bd0ea84fddb6c66e8a Mon Sep 17 00:00:00 2001 From: Paul Moore Date: Mon, 6 Feb 2017 10:19:54 -0500 Subject: 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 (imported from commit d3afeac428d5b1556a5abf17821a00d6984212eb) --- .travis.yml | 24 +++++++++++++----------- 1 file 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 -- cgit v1.2.1