Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
ec63baa7
Commit
ec63baa7
authored
Mar 18, 2019
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Have travis build some tests with DLIB_ASSERT enabled to make sure they work.
parent
f8827f6b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
.travis.yml
.travis.yml
+2
-2
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:
...
@@ -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
...
...
dlib/travis/build-and-test.sh
View file @
ec63baa7
...
@@ -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
...
...
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