Add .travis.yml file to build on Travis

This commit is contained in:
Daniel Chappuis 2015-07-12 11:49:25 +02:00
parent a1eade1c02
commit 1b276fbe55

22
.travis.yml Normal file
View File

@ -0,0 +1,22 @@
language: cpp
os:
- linux
- osx
compiler:
- gcc
- clang
branches:
only:
- master
- develop
script:
- mkdir build_directory
- cd build_directory
- cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug —DDOUBLE_PRECISION_ENABLED=True -DCOMPILE_TESTS=True ../
- make && make test
- cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug —DDOUBLE_PRECISION_ENABLED=False -DCOMPILE_TESTS=True ../
- make && make test
- cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release —DDOUBLE_PRECISION_ENABLED=True -DCOMPILE_TESTS=True ../
- make && make test
- cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release —DDOUBLE_PRECISION_ENABLED=False -DCOMPILE_TESTS=True ../
- make && make test