Commit ec63baa7 authored by Davis King's avatar Davis King

Have travis build some tests with DLIB_ASSERT enabled to make sure they work.

parent f8827f6b
...@@ -16,7 +16,7 @@ matrix: ...@@ -16,7 +16,7 @@ matrix:
compiler: clang compiler: clang
os: linux os: linux
env: env:
- VARIANT=examples - VARIANT=examples-debug
script: script:
- dlib/travis/build-and-test.sh - dlib/travis/build-and-test.sh
...@@ -25,7 +25,7 @@ matrix: ...@@ -25,7 +25,7 @@ matrix:
compiler: gcc compiler: gcc
os: linux os: linux
env: env:
- VARIANT=test - VARIANT=test-debug
script: script:
- dlib/travis/build-and-test.sh - dlib/travis/build-and-test.sh
......
...@@ -16,6 +16,15 @@ if [ "$VARIANT" = "test" ]; then ...@@ -16,6 +16,15 @@ if [ "$VARIANT" = "test" ]; then
./dtest --runall ./dtest --runall
fi fi
# build dlib and tests
if [ "$VARIANT" = "test-debug" ]; then
mkdir build
cd build
cmake ../dlib/test --DDLIB_ENABLE_ASSERTS=1
cmake --build . --target dtest -- -j 2
./dtest --runall
fi
if [ "$VARIANT" = "dlib_all_source_cpp" ]; then if [ "$VARIANT" = "dlib_all_source_cpp" ]; then
mkdir build mkdir build
cd build cd build
...@@ -62,6 +71,13 @@ if [ "$VARIANT" = "examples" ]; then ...@@ -62,6 +71,13 @@ if [ "$VARIANT" = "examples" ]; then
cmake --build . -- -j 1 cmake --build . -- -j 1
fi fi
if [ "$VARIANT" = "examples-debug" ]; then
mkdir build
cd build
cmake ../examples --DDLIB_ENABLE_ASSERTS=1
cmake --build . -- -j 1
fi
if [ "$VARIANT" = "python-api" ]; then if [ "$VARIANT" = "python-api" ]; then
python setup.py test --clean python setup.py test --clean
pip uninstall numpy -y pip uninstall numpy -y
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment