forked from Danielhiversen/AngleCorr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (49 loc) · 1.65 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
language: cpp
cache:
apt: true
directories:
- eigen
- testData
matrix:
include:
- os: linux
compiler: gcc
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test', 'kalakris-cmake' ]
packages: [ 'g++-4.8', 'libstdc++-4.8-dev', 'ninja-build', 'cmake', 'libvtk5-dev']
env: CMAKE_BUILD_TYPE=DEBUG
- os: linux
compiler: gcc
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test', 'kalakris-cmake' ]
packages: [ 'g++-4.8', 'libstdc++-4.8-dev', 'ninja-build', 'cmake', 'libvtk5-dev' ]
env: CMAKE_BUILD_TYPE=RELEASE
- os: linux
compiler: clang
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test', 'kalakris-cmake' ]
packages: [ 'clang', 'libstdc++-4.8-dev', 'ninja-build', 'cmake', 'libvtk5-dev' ]
env: CMAKE_BUILD_TYPE=RELEASE
# - os: osx
# compiler: clang
# env: CMAKE_BUILD_TYPE=RELEASE
# command to run tests
before_install:
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install homebrew/science/vtk5 ninja cmake; fi
#- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get clean && sudo apt-get update -qq && sudo apt-get install -y libvtk5-dev ; fi
- cd ..
- if [[ ! -d "eigen" ]]; then git clone https://github.com/RLovelett/eigen.git; fi
- cd eigen
- git checkout 3.2.10
- cd ..
script:
- if [[ ! -d "testData" ]]; then git clone https://github.com/Danielhiversen/angleCorr_data.git testData ; fi
- cd $TRAVIS_BUILD_DIR
- mkdir -p build
- cd build
- cmake -G "Ninja" -DANGLECORRECTION_TEST_DATA_DIR=../../testData -DEIGEN_DIR=../../eigen ../core/
- ninja
- ./Tests/Catch