mirror of https://github.com/davisking/dlib.git
Make travis-ci build the python api
This commit is contained in:
parent
373ca59369
commit
6266b98773
14
.travis.yml
14
.travis.yml
|
@ -29,6 +29,20 @@ matrix:
|
||||||
- PATH=$HOME/bin:$PATH
|
- PATH=$HOME/bin:$PATH
|
||||||
- VARIANT=examples
|
- VARIANT=examples
|
||||||
addons: *ao_gcc5
|
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:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
|
|
|
@ -15,4 +15,7 @@ if [ "$VARIANT" = "examples" ]; then
|
||||||
../cmake/bin/cmake --build . -- -j 2
|
../cmake/bin/cmake --build . -- -j 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd ..
|
if [ "$VARIANT" = "python-api" ]; then
|
||||||
|
../cmake/bin/cmake ../tools/python -DCMAKE_BUILD_TYPE=Release
|
||||||
|
../cmake/bin/cmake --build . -- -j 2
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue