From d76d29b4fdaa1eced6689faac74b2a6fa503c0eb Mon Sep 17 00:00:00 2001 From: hvellyr Date: Sun, 29 May 2016 23:40:14 +0200 Subject: [PATCH] Build and test on travis --- .travis.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..450b15e --- /dev/null +++ b/.travis.yml @@ -0,0 +1,38 @@ +language: cpp +sudo: false + +matrix: + include: + - compiler: gcc + addons: + apt: + sources: + - kubuntu-backports + - ubuntu-toolchain-r-test + packages: + - cmake + - gcc-4.9 + - g++-4.9 + env: COMPILER=g++-4.9 + - compiler: clang + addons: + apt: + sources: + - kubuntu-backports + - ubuntu-toolchain-r-test + - llvm-toolchain-precise-3.7 + packages: + - cmake + - clang-3.7 + env: COMPILER=clang++-3.7 + +branches: + only: + - master + +before_script: + - export CXX=$COMPILER + +script: + - mkdir build && cd build + - cmake .. && make && ctest -V