Add Coverage Report for Java and Python (#2667)
* Add coverage report for java * Add coverage report for python * Increase memory for JVM unit tests * Increase memory for JVM unit tests
This commit is contained in:
@@ -32,8 +32,10 @@ if [ ${TASK} == "python_test" ]; then
|
||||
source activate python3
|
||||
python --version
|
||||
conda install numpy scipy pandas matplotlib nose scikit-learn
|
||||
python -m pip install graphviz
|
||||
python -m pip install graphviz pytest pytest-cov codecov
|
||||
python -m nose tests/python || exit -1
|
||||
py.test tests/python --cov=python-package/xgboost
|
||||
codecov
|
||||
source activate python2
|
||||
echo "-------------------------------"
|
||||
python --version
|
||||
@@ -49,8 +51,10 @@ if [ ${TASK} == "python_lightweight_test" ]; then
|
||||
source activate python3
|
||||
python --version
|
||||
conda install numpy scipy nose
|
||||
python -m pip install graphviz
|
||||
python -m pip install graphviz pytest pytest-cov codecov
|
||||
python -m nose tests/python || exit -1
|
||||
py.test tests/python --cov=python-package/xgboost
|
||||
codecov
|
||||
source activate python2
|
||||
echo "-------------------------------"
|
||||
python --version
|
||||
|
||||
Reference in New Issue
Block a user