From 3d7931a0fcfacff9562512861ad75a17574ee112 Mon Sep 17 00:00:00 2001 From: Joshua Scott Date: Thu, 29 Mar 2018 15:48:46 +0100 Subject: [PATCH] travis: Travis-CI configuration --- .travis.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..c97a5ca --- /dev/null +++ b/.travis.yml @@ -0,0 +1,35 @@ +dist: trusty +sudo: required +language: + - cpp +compiler: + - gcc +addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - gcc-6 + - g++-6 + - cmake +script: + # Link gcc-6 and g++-6 to their standard commands + - ln -s /usr/bin/gcc-6 /usr/local/bin/gcc + - ln -s /usr/bin/g++-6 /usr/local/bin/g++ + + # Export CC and CXX to tell cmake which compiler to use + - export CC=/usr/bin/gcc-6 + - export CXX=/usr/bin/g++-6 + + # Check versions of gcc, g++ and cmake + - gcc -v && g++ -v && cmake --version + + # Build + - rm -rf build/ + - mkdir build + - cd build + - cmake .. + - make + + # Testing + - make test