forked from strasdat/Sophus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
71 lines (60 loc) · 2.09 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
sudo: required
dist: trusty
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- gcc-5
- g++-5
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then if ! [[ "$BUILD_TYPE" == "Python" ]]; then scripts/install_linux_deps.sh ; fi ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then scripts/install_osx_deps.sh ; fi
install:
- if [[ "$BUILD_TYPE" == "Coverage" ]]; then wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.11.orig.tar.gz ; fi
- if [[ "$BUILD_TYPE" == "Coverage" ]]; then tar xf lcov_1.11.orig.tar.gz ; fi
- if [[ "$BUILD_TYPE" == "Coverage" ]]; then sudo make -C lcov-1.11/ install ; fi
- if [[ "$BUILD_TYPE" == "Coverage" ]]; then gem install coveralls-lcov ; fi
- if [[ "$BUILD_TYPE" == "Python" ]]; then pip3 install sympy ; fi
language: cpp
cache: ccache
matrix:
include:
- language: cpp
compiler: gcc
os: linux
env: BUILD_TYPE=Coverage ROW_MAJOR_DEFAULT=OFF
- language: cpp
compiler: gcc
os: linux
env: BUILD_TYPE=Release ROW_MAJOR_DEFAULT=OFF
- language: cpp
compiler: clang
os: linux
env: BUILD_TYPE=Debug ROW_MAJOR_DEFAULT=OFF
- language: cpp
compiler: gcc
os: linux
env: BUILD_TYPE=Debug ROW_MAJOR_DEFAULT=ON
- language: cpp
compiler: clang
os: linux
env: BUILD_TYPE=Release ROW_MAJOR_DEFAULT=OFF
- language: python
env: BUILD_TYPE=Python
python: "3.6"
- language: cpp
compiler: clang
os: osx
env: BUILD_TYPE=Debug
script:
- if ! [[ "$BUILD_TYPE" == "Python" ]]; then scripts/run_cpp_tests.sh ; fi
- if [[ "$BUILD_TYPE" == "Python" ]]; then cd py; ./run_tests.sh ; fi
after_success:
- if [[ "$BUILD_TYPE" == "Coverage" ]]; then lcov --directory . --capture --output-file coverage.info ; fi
- if [[ "$BUILD_TYPE" == "Coverage" ]]; then lcov --remove coverage.info 'test/*' '/usr/*' --output-file coverage.info ; fi
- if [[ "$BUILD_TYPE" == "Coverage" ]]; then lcov --list coverage.info ; fi
- if [[ "$BUILD_TYPE" == "Coverage" ]]; then coveralls-lcov --repo-token ${COVERALLS_TOKEN} coverage.info ; fi
branches:
only:
- master