summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2013-11-11 16:09:24 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2013-11-13 12:40:36 +0100
commitc40ab436d1c610d3ea73e5fa23933a017fc47555 (patch)
treedffb881bb6146b6fdfabe4270fa75afe43973642 /.travis.yml
parentecd3b82aa541b96fe92dfaba91ed802fe6294d92 (diff)
Add Travis CI support
At the moment we don't run the test suite because there is no real OpenCL available on the virtual machines. We will have to split the test-suite into different test suites and run only the basic tests on Travis.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..4afe8c6
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,20 @@
+language: c
+
+env:
+ - BUILD_TYPE=Debug
+ - BUILD_TYPE=Release
+
+before_install:
+ # Hijacking the crystfel repos for OpenCL headers and ICD
+ - sudo add-apt-repository ppa:valmar-lp/crystfel-releases -y
+ - sudo apt-get update -qq -y
+ - sudo apt-get install opencl-headers ocl-icd-opencl-dev
+ - sudo apt-get install cmake gobject-introspection libglib2.0-dev libjson-glib-dev libzmq3-dev
+
+before_script:
+ - mkdir build
+ - cd build
+ - cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DWITH_GIR=OFF -DWITH_GTK_DOC=OFF -DWITH_PYTHON=OFF
+
+script:
+ - make