fix travis build and test script

This commit is contained in:
Davis King 2018-01-17 06:44:08 -05:00
parent 2a2bc9cef1
commit e1215e5ce5

View File

@ -3,14 +3,17 @@
set -eux
# build dlib and tests
mkdir build
cd build
if [ "$VARIANT" = "test" ]; then
mkdir build
cd build
../cmake/bin/cmake ../dlib/test -DCMAKE_BUILD_TYPE=Release
../cmake/bin/cmake --build . --target dtest -- -j 2
./dtest --runall
fi
if [ "$VARIANT" = "examples" ]; then
mkdir build
cd build
../cmake/bin/cmake ../examples -DCMAKE_BUILD_TYPE=Release
../cmake/bin/cmake --build . -- -j 1
fi