echo "Calling pytest with the following arguments: $PYTEST_ADDOPTS"
python -mpytest
before_cache: |
rm -rf $HOME/.cache/matplotlib/tex.cache
rm -rf $HOME/.cache/matplotlib/test_cache
after_failure: |
if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_REPO_SLUG == 'matplotlib/matplotlib' ]]; then
tar cjf result_images.tar.bz2 result_images
echo 'See "Uploading Artifacts" near the end of the log for the download URL'
else
echo "The result images will only be uploaded if they are on the matplotlib/matplotlib repo - this is for security reasons to prevent arbitrary PRs echoing security details."