2014-04-03 17:14:28 +08:00
|
|
|
#!/bin/bash
|
2014-04-03 20:59:26 +08:00
|
|
|
# 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-04-03 17:14:28 +08:00
|
|
|
|
2014-08-19 16:49:59 +08:00
|
|
|
# License: 3-clause BSD
|
|
|
|
|
|
2014-04-03 17:14:28 +08:00
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
python --version
|
|
|
|
|
python -c "import numpy; print('numpy %s' % numpy.__version__)"
|
|
|
|
|
python -c "import scipy; print('scipy %s' % scipy.__version__)"
|
|
|
|
|
|
2014-07-02 19:25:34 +08:00
|
|
|
# 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.
|
2014-04-03 17:14:28 +08:00
|
|
|
if [[ "$COVERAGE" == "true" ]]; then
|
2014-07-19 18:06:43 +08:00
|
|
|
nosetests -s --with-coverage sklearn
|
2014-04-03 17:14:28 +08:00
|
|
|
else
|
2014-07-19 18:06:43 +08:00
|
|
|
nosetests -s sklearn
|
2014-04-03 17:14:28 +08:00
|
|
|
fi
|
2014-07-10 20:04:04 +08:00
|
|
|
|
2014-05-21 09:44:46 +08:00
|
|
|
make test-doc test-sphinxext
|