2015-07-12 09:49:25 +00:00
|
|
|
language: cpp
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
- clang
|
2016-03-30 21:11:41 +00:00
|
|
|
install:
|
|
|
|
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- gcc-4.8
|
|
|
|
- g++-4.8
|
|
|
|
- clang
|
2015-07-12 09:49:25 +00:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- develop
|
|
|
|
script:
|
2016-04-15 19:45:55 +00:00
|
|
|
- mkdir build_directory
|
2016-04-02 15:12:31 +00:00
|
|
|
- cd build_directory
|
2016-04-02 14:26:12 +00:00
|
|
|
# Build in debug mode with double precision
|
2016-04-02 15:06:54 +00:00
|
|
|
- cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug —DDOUBLE_PRECISION_ENABLED=True -DCOMPILE_TESTS=True ../
|
2016-04-02 00:19:12 +00:00
|
|
|
- make && make test ARGS="-V"
|
2016-04-02 14:26:12 +00:00
|
|
|
# Build in debug mode with single precision
|
2016-04-02 15:06:54 +00:00
|
|
|
- cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug —DDOUBLE_PRECISION_ENABLED=False -DCOMPILE_TESTS=True ../
|
2016-04-02 00:19:12 +00:00
|
|
|
- make && make test ARGS="-V"
|
2016-04-02 14:26:12 +00:00
|
|
|
# Build in release mode with double precision
|
2016-04-02 15:06:54 +00:00
|
|
|
- cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release —DDOUBLE_PRECISION_ENABLED=True -DCOMPILE_TESTS=True ../
|
2016-04-02 00:19:12 +00:00
|
|
|
- make && make test ARGS="-V"
|
2016-04-02 14:26:12 +00:00
|
|
|
# Build in release mode with single precision
|
2016-04-02 15:06:54 +00:00
|
|
|
- cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release —DDOUBLE_PRECISION_ENABLED=False -DCOMPILE_TESTS=True ../
|
2016-04-02 00:19:12 +00:00
|
|
|
- make && make test ARGS="-V"
|