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
f22d6736
Commit
f22d6736
authored
Dec 10, 2017
by
Davis King
Browse files
Make travis build both python2 and python3 versions of the python extension.
parent
2b934688
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
.travis.yml
.travis.yml
+16
-0
dlib/travis/build-and-test.sh
dlib/travis/build-and-test.sh
+8
-0
No files found.
.travis.yml
View file @
f22d6736
...
...
@@ -45,6 +45,22 @@ matrix:
packages
:
-
libboost-python1.55-dev
-
*gcc5_pkgs
# build the python3 extension
-
compiler
:
gcc
env
:
-
GCC_VER=5
-
ADDRESS_MODEL=64
-
BUILD_SYSTEM=cmake
-
PATH=$HOME/bin:$PATH
-
VARIANT=python3-api
addons
:
&ao_gcc5
apt
:
sources
:
-
ubuntu-toolchain-r-test
-
boost-latest
packages
:
-
libboost-python1.55-dev
-
*gcc5_pkgs
cache
:
directories
:
...
...
dlib/travis/build-and-test.sh
View file @
f22d6736
...
...
@@ -22,3 +22,11 @@ if [ "$VARIANT" = "python-api" ]; then
../python_examples/svm_rank.py
fi
if
[
"
$VARIANT
"
=
"python3-api"
]
;
then
pip
install
--user
numpy
../cmake/bin/cmake ../tools/python
-DPYTHON3
=
ON
-DCMAKE_BUILD_TYPE
=
Release
../cmake/bin/cmake
--build
.
--target
install
--
-j
2
../python_examples/svm_rank.py
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