Commit 67545f45 authored by Davis King's avatar Davis King

More tests for travis-ci.

parent 5fdb7aaa
...@@ -29,6 +29,24 @@ matrix: ...@@ -29,6 +29,24 @@ matrix:
script: script:
- dlib/travis/build-and-test.sh - dlib/travis/build-and-test.sh
###################
- language: cpp
compiler: gcc
os: linux
env:
- VARIANT=tools
script:
- dlib/travis/build-and-test.sh
###################
- language: cpp
compiler: gcc
os: linux
env:
- VARIANT=dlib_all_source_cpp
script:
- dlib/travis/build-and-test.sh
########### test with C++17 ######## ########### test with C++17 ########
- language: cpp - language: cpp
compiler: gcc compiler: gcc
......
...@@ -11,15 +11,29 @@ fi ...@@ -11,15 +11,29 @@ fi
if [ "$VARIANT" = "test" ]; then if [ "$VARIANT" = "test" ]; then
mkdir build mkdir build
cd build cd build
cmake ../dlib/test -DCMAKE_BUILD_TYPE=Release cmake ../dlib/test
cmake --build . --target dtest -- -j 2 cmake --build . --target dtest -- -j 2
./dtest --runall ./dtest --runall
fi fi
if [ "$VARIANT" = "dlib_all_source_cpp" ]; then
mkdir build
cd build
cmake ../dlib/test
cmake --build . --target dlib_all_source_cpp -- -j 2
fi
if [ "$VARIANT" = "tools" ]; then
mkdir build
cd build
cmake ../dlib/test/tools
cmake --build . -- -j 2
fi
if [ "$VARIANT" = "examples" ]; then if [ "$VARIANT" = "examples" ]; then
mkdir build mkdir build
cd build cd build
cmake ../examples -DCMAKE_BUILD_TYPE=Release cmake ../examples
cmake --build . -- -j 1 cmake --build . -- -j 1
fi fi
......
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