-
Notifications
You must be signed in to change notification settings - Fork 95
/
.travis.yml
28 lines (24 loc) · 903 Bytes
/
.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
language: c
matrix:
include:
- os: osx
compiler: clang
before_install:
- export PREFIX=$HOME/.local
- brew update && brew install doxygen
- export PYTHONUSERBASE=$PREFIX
- pip2 install --user breathe sphinx==1.6.3 sphinx_rtd_theme cython numpy 'mako>=0.7' six
- export PATH=$PATH:$PREFIX/bin
- export CPATH=$CPATH:$PREFIX/include
- export LIBRARY_PATH=$LIBRARY_PATH:$PREFIX/lib
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PREFIX/lib
# Build with Debug and Release to flush out build problems
script:
- mkdir Debug
- (cd Debug && cmake .. -DCMAKE_BUILD_TYPE=Debug && make)
- mkdir Release
- (cd Release && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PREFIX && make && make install)
- python setup.py build_ext --inplace
- (cd doc && make html)
# Do not treat "shell_session_update: command not found" on MacOS as a failure
after_script: set +e