From 6e6838a9f3a2d206a6ba1a242690b4cddfa448cf Mon Sep 17 00:00:00 2001 From: Nir Soffer Date: Jan 08 2018 19:35:26 +0000 Subject: Add travis CI integration Add .travis.yml configuration, allowing anyone to run sanlock tests in travis. To enable to tests in travis: - Fork sanlock on github - Enable Travis-CI service - Visit https://travis-ci.org/profile and enable the tests for your username/sanlock After this setup, each time you push to your sanlock fork, travis will run the tests with your patch using travis standard build environment (Ubuntu Trusty). Here is an example travis build on my sanlock fork: https://travis-ci.org/nirs/sanlock/builds/325674436 Since sanlock is developed mainly on Fedora, running the tests on Ubuntu ensure that we are compatible with Debian based distros, and will reveal portability issues quickly. Signed-off-by: Nir Soffer --- diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..883840b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,13 @@ +language: python + +before_install: + - sudo apt-get -qq update + - sudo apt-get install -y make gcc libaio-dev libblkid-dev + +env: + - LD_LIBRARY_PATH=$PWD/src:$PWD/wdmd + +script: + - make -C wdmd + - make -C src + - pytest