summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2015-12-14 01:01:51 +0200
committerPauli Virtanen <pav@iki.fi>2015-12-14 01:43:05 +0200
commitf0d6d470c13405f9643f8bde50da74170b66c5c0 (patch)
tree673a8a21428f5e12d6252c8ec074dfb26ffe35af /tools
parent33d77247d711b16831283661f14ecc7f8f179d73 (diff)
downloadnumpy-f0d6d470c13405f9643f8bde50da74170b66c5c0.tar.gz
CI: run benchmark suite in travis-CI
This should ensure the suite stays in working condition, not to produce reliable timing information.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/travis-test.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/travis-test.sh b/tools/travis-test.sh
index af151f434..3591c36df 100755
--- a/tools/travis-test.sh
+++ b/tools/travis-test.sh
@@ -75,6 +75,17 @@ run_test()
$PYTHON ../tools/test-installed-numpy.py # --mode=full
# - coverage run --source=$INSTALLDIR --rcfile=../.coveragerc $(which $PYTHON) ../tools/test-installed-numpy.py
# - coverage report --rcfile=../.coveragerc --show-missing
+
+ if [ -n "$USE_ASV" ]; then
+ pushd ../benchmarks
+ $PYTHON `which asv` machine --machine travis
+ $PYTHON `which asv` dev 2>&1| tee asv-output.log
+ if grep -q Traceback asv-output.log; then
+ echo "Some benchmarks have errors!"
+ exit 1
+ fi
+ popd
+ fi
}
# travis venv tests override python