Make travis python tests run via setup.py

This commit is contained in:
Davis King 2018-01-16 19:47:27 -05:00
parent 88dd3e4daf
commit 63f6585035
1 changed files with 5 additions and 17 deletions

View File

@ -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