-
Notifications
You must be signed in to change notification settings - Fork 17
/
.travis.yml
48 lines (41 loc) · 1.19 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
language: cpp
os:
- linux
- osx
env:
global:
- MAKEFLAGS="-j 2"
osx_image: xcode11
sudo: false
addons:
apt:
packages:
- libboost-dev
- libboost-regex-dev
- libeigen3-dev
- libflann-dev
- libgomp1
- libtinyxml2-dev
compiler:
- clang
- gcc
# Let us install a set of Homebrew packages for Mac OS X. This appears
# to be rather clunky, but the official documentation contains similar
# examples.
#
# Moreover, we need to fix the library paths for `clang` because `OMP`
# will not be found otherwise. This appears to be an issue with Travis
# CI; see https://github.com/travis-ci/travis-ci/issues/8613.
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install eigen ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install pybind11 ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install rapidjson ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install tinyxml2 ; fi
# Workaround documented in: https://github.com/travis-ci/travis-ci/issues/8613
- export LD_LIBRARY_PATH=/usr/local/clang/lib:$LD_LIBRARY_PATH
script:
- mkdir build
- cd build
- cmake ..
- make
- CTEST_OUTPUT_ON_FAILURE=1 make test