Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
ec63baa7
Commit
ec63baa7
authored
Mar 17, 2019
by
Davis King
Browse files
Have travis build some tests with DLIB_ASSERT enabled to make sure they work.
parent
f8827f6b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
.travis.yml
.travis.yml
+2
-2
dlib/travis/build-and-test.sh
dlib/travis/build-and-test.sh
+16
-0
No files found.
.travis.yml
View file @
ec63baa7
...
...
@@ -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
...
...
dlib/travis/build-and-test.sh
View file @
ec63baa7
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment