summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2017-02-03 19:33:18 -0500
committerPaul Moore <paul@paul-moore.com>2017-02-03 19:33:18 -0500
commit47bdf57274ef7e2c48a97de991855efa10c4bf55 (patch)
tree6b196b3a61b7f8cb01b9da2f6afd0a845bcfcca4
parentce5aea6a4ae7523b57ec13e2e6150aa5d83c1b4e (diff)
downloadlibseccomp-47bdf57274ef7e2c48a97de991855efa10c4bf55.tar.gz
build: add initial support for Travis CI
Signed-off-by: Paul Moore <paul@paul-moore.com>
-rw-r--r--.travis.yml43
1 files changed, 43 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..cfe4901
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,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)