Skip to content

Commit

Permalink
CI: run benchmark suite in travis-CI
Browse files Browse the repository at this point in the history
This should ensure the suite stays in working condition, not to produce
reliable timing information.
  • Loading branch information
pv committed Dec 13, 2015
1 parent 33d7724 commit f0d6d47
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ matrix:
# travis encrypt -r numpy/numpy WHEELHOUSE_UPLOADER_SECRET=tH3AP1KeY
- secure: "IEicLPrP2uW+jW51GRwkONQpdPqMVtQL5bdroqR/U8r9TrXrbCVRhp4AP8JYZT0ptoBpmZWWGjmKBndB68QlMiUjQPowiFWt9Ka92CaqYdU7nqfWp9VImSndPmssjmCXJ1v1IjZPAMahp7Qnm0rWRmA0z9SomuRUQOJQ6s684vU="
- python: 2.7
env: PYTHONOPTIMIZE=2
env:
- PYTHONOPTIMIZE=2
- USE_ASV=1
before_install:
- uname -a
- free -m
Expand All @@ -74,6 +76,7 @@ before_install:
# pip install coverage
# Speed up install by not compiling Cython
- pip install --install-option="--no-cython-compile" Cython
- if [ -n "$USE_ASV" ]; then pip install asv; fi
- popd

script:
Expand Down
11 changes: 11 additions & 0 deletions tools/travis-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f0d6d47

Please sign in to comment.