scikit-learn/continuous_integration/test_script.sh

26 lines
799 B
Bash
Raw Normal View History

#!/bin/bash
# This script is meant to be called by the "script" step defined in
# .travis.yml. See http://docs.travis-ci.com/ for more details.
# The behavior of the script is controlled by environment variabled defined
# in the .travis.yml in the top level folder of the project.
set -e
python --version
python -c "import numpy; print('numpy %s' % numpy.__version__)"
python -c "import scipy; print('scipy %s' % scipy.__version__)"
python setup.py build_ext --inplace
# Skip tests that require large downloads over the network to save bandwith
# usage as travis workers are stateless and therefore traditional local
# disk caching does not work.
export SKLEARN_SKIP_NETWORK_TESTS=1
if [[ "$COVERAGE" == "true" ]]; then
2014-07-17 19:29:23 +08:00
make test-coverage
else
2014-07-17 19:29:23 +08:00
make test
fi
2014-05-21 09:44:46 +08:00
make test-doc test-sphinxext