You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Use the special local version of freetype for testing
180
-
cp ci/travis/setup.cfg .
181
182
- |
182
183
# Install matplotlib
183
184
python -mpip install -ve .
184
185
185
-
before_script:
186
-
- |
187
-
if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
188
-
export DISPLAY=:99.0
189
-
sh -e /etc/init.d/xvfb start
190
-
fi
186
+
before_script: |
187
+
if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
188
+
export DISPLAY=:99.0
189
+
sh -e /etc/init.d/xvfb start
190
+
fi
191
+
if [[ $DELETE_FONT_CACHE == 1 ]]; then
192
+
rm -rf ~/.cache/matplotlib
193
+
fi
191
194
192
-
script: ci/travis/test_script.sh
195
+
script: |
196
+
echo "Calling pytest with the following arguments: $PYTEST_ADDOPTS"
197
+
python -mpytest
193
198
194
-
before_cache:
195
-
- rm -rf $HOME/.cache/matplotlib/tex.cache
196
-
- rm -rf $HOME/.cache/matplotlib/test_cache
199
+
before_cache:|
200
+
rm -rf $HOME/.cache/matplotlib/tex.cache
201
+
rm -rf $HOME/.cache/matplotlib/test_cache
197
202
198
-
after_failure:
199
-
- |
200
-
if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_REPO_SLUG == 'matplotlib/matplotlib' ]]; then
201
-
tar cjf result_images.tar.bz2 result_images
202
-
echo 'See "Uploading Artifacts" near the end of the log for the download URL'
203
-
else
204
-
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."
205
-
fi
203
+
after_failure: |
204
+
if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_REPO_SLUG == 'matplotlib/matplotlib' ]]; then
205
+
tar cjf result_images.tar.bz2 result_images
206
+
echo 'See "Uploading Artifacts" near the end of the log for the download URL'
207
+
else
208
+
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."
0 commit comments