Commit 7d3397db authored by Davis King's avatar Davis King

Better travis python testing.

parent a80f31a8
...@@ -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:
......
...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment