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
7d3397db
Commit
7d3397db
authored
Dec 10, 2017
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better travis python testing.
parent
a80f31a8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
.travis.yml
.travis.yml
+2
-0
build-and-test.sh
dlib/travis/build-and-test.sh
+10
-1
No files found.
.travis.yml
View file @
7d3397db
...
@@ -60,6 +60,8 @@ matrix:
...
@@ -60,6 +60,8 @@ matrix:
-
boost-latest
-
boost-latest
packages
:
packages
:
-
libboost-python1.55-dev
-
libboost-python1.55-dev
-
python3
-
python3-pip
-
*gcc5_pkgs
-
*gcc5_pkgs
cache
:
cache
:
...
...
dlib/travis/build-and-test.sh
View file @
7d3397db
...
@@ -16,16 +16,25 @@ if [ "$VARIANT" = "examples" ]; then
...
@@ -16,16 +16,25 @@ if [ "$VARIANT" = "examples" ]; then
fi
fi
if
[
"
$VARIANT
"
=
"python-api"
]
;
then
if
[
"
$VARIANT
"
=
"python-api"
]
;
then
pip
install
--user
numpy
../cmake/bin/cmake ../tools/python
-DCMAKE_BUILD_TYPE
=
Release
../cmake/bin/cmake ../tools/python
-DCMAKE_BUILD_TYPE
=
Release
../cmake/bin/cmake
--build
.
--target
install
--
-j
2
../cmake/bin/cmake
--build
.
--target
install
--
-j
2
../python_examples/svm_rank.py
rm
-rf
*
pip
install
--user
numpy
../cmake/bin/cmake ../tools/python
-DCMAKE_BUILD_TYPE
=
Release
../cmake/bin/cmake
--build
.
--target
install
--
-j
2
../python_examples/svm_rank.py
../python_examples/svm_rank.py
fi
fi
if
[
"
$VARIANT
"
=
"python3-api"
]
;
then
if
[
"
$VARIANT
"
=
"python3-api"
]
;
then
../cmake/bin/cmake ../tools/python
-DPYTHON3
=
ON
-DCMAKE_BUILD_TYPE
=
Release
../cmake/bin/cmake ../tools/python
-DPYTHON3
=
ON
-DCMAKE_BUILD_TYPE
=
Release
../cmake/bin/cmake
--build
.
--target
install
--
-j
2
../cmake/bin/cmake
--build
.
--target
install
--
-j
2
python3 ../python_examples/svm_rank.py
pip3
install
--user
numpy
rm
-rf
*
../cmake/bin/cmake ../tools/python
-DPYTHON3
=
ON
-DCMAKE_BUILD_TYPE
=
Release
../cmake/bin/cmake
--build
.
--target
install
--
-j
2
python3 ../python_examples/svm_rank.py
python3 ../python_examples/svm_rank.py
fi
fi
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