mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
fix travis build and test script
This commit is contained in:
parent
2a2bc9cef1
commit
e1215e5ce5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user