Make travis-ci build the python api

This commit is contained in:
Davis King 2017-07-11 18:12:47 -04:00
parent 373ca59369
commit 6266b98773
2 changed files with 18 additions and 1 deletions

View File

@ -29,6 +29,20 @@ matrix:
- PATH=$HOME/bin:$PATH
- VARIANT=examples
addons: *ao_gcc5
# build the python extension
- compiler: gcc
env:
- GCC_VER=5
- ADDRESS_MODEL=64
- BUILD_SYSTEM=cmake
- PATH=$HOME/bin:$PATH
- VARIANT=python-api
addons: &ao_gcc5
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libboost-python-dev
cache:
directories:

View File

@ -15,4 +15,7 @@ if [ "$VARIANT" = "examples" ]; then
../cmake/bin/cmake --build . -- -j 2
fi
cd ..
if [ "$VARIANT" = "python-api" ]; then
../cmake/bin/cmake ../tools/python -DCMAKE_BUILD_TYPE=Release
../cmake/bin/cmake --build . -- -j 2
fi