mirror of https://github.com/davisking/dlib.git
Make travis python tests run via setup.py
This commit is contained in:
parent
88dd3e4daf
commit
63f6585035
|
@ -16,25 +16,13 @@ if [ "$VARIANT" = "examples" ]; then
|
|||
fi
|
||||
|
||||
if [ "$VARIANT" = "python-api" ]; then
|
||||
../cmake/bin/cmake ../tools/python -DCMAKE_BUILD_TYPE=Release
|
||||
../cmake/bin/cmake --build . --target install -- -j 2
|
||||
../python_examples/svm_rank.py
|
||||
|
||||
rm -rf *
|
||||
python setup.py test --clean
|
||||
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 setup.py test --clean
|
||||
fi
|
||||
|
||||
if [ "$VARIANT" = "python3-api" ]; then
|
||||
../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
|
||||
|
||||
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 setup.py test --clean
|
||||
pip install --user numpy
|
||||
python3 setup.py test --clean
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue