scikit-learn/continuous_integration/test_script.sh

29 lines
958 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.
2014-08-19 16:49:59 +08:00
# License: 3-clause BSD
set -e
python --version
python -c "import numpy; print('numpy %s' % numpy.__version__)"
python -c "import scipy; print('scipy %s' % scipy.__version__)"
# 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
2014-07-19 18:06:43 +08:00
# Do not use "make test" or "make test-coverage" as they enable verbose mode
# which renders travis output too slow to display in a browser.
if [[ "$COVERAGE" == "true" ]]; then
2014-07-19 18:06:43 +08:00
nosetests -s --with-coverage sklearn
else
2014-07-19 18:06:43 +08:00
nosetests -s sklearn
fi
2014-05-21 09:44:46 +08:00
make test-doc test-sphinxext