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:
compiler: clang
os: linux
env:
- VARIANT=examples
- VARIANT=examples-debug
script:
- dlib/travis/build-and-test.sh
......@@ -25,7 +25,7 @@ matrix:
compiler: gcc
os: linux
env:
- VARIANT=test
- VARIANT=test-debug
script:
- dlib/travis/build-and-test.sh
......
......@@ -16,6 +16,15 @@ if [ "$VARIANT" = "test" ]; then
./dtest --runall
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
mkdir build
cd build
......@@ -62,6 +71,13 @@ if [ "$VARIANT" = "examples" ]; then
cmake --build . -- -j 1
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
python setup.py test --clean
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