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
- Splitting test_script.sh into its own file is a bit overkill (but then
we can't use `set -x` as that applies to the whole script, using a
subshell is a bit overkill).
- pytest directly reads arguments from $PYTEST_ADDOPTS, use that.
- We were setting $PYTHON_ARGS but not actually using it (that failed
the legend docstring test), instead put a comment saying to set
$PYTHONOPTIMIZE (which exists for that purpose).
- ci/travis/setup.cfg can just as well be replaced by setting
$MPLLOCALFREETYPE.
- Yaml entries that are a single string don't need to get an extra
indent.
- matplotlibDeployKey.enc is unused since we switched to using circleci
for doc builds.
- ci/travis/silence was the only one left in its directory, so we may as
well move it up once directory.
# Use the special local version of freetype for testing
180
-
cp ci/travis/setup.cfg .
181
186
- |
182
187
# Install matplotlib
183
188
python -mpip install -ve .
184
189
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
190
+
before_script: |
191
+
if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
192
+
export DISPLAY=:99.0
193
+
sh -e /etc/init.d/xvfb start
194
+
fi
195
+
if [[ $DELETE_FONT_CACHE == 1 ]]; then
196
+
rm -rf ~/.cache/matplotlib
197
+
fi
191
198
192
-
script: ci/travis/test_script.sh
199
+
script: |
200
+
echo "Calling pytest with the following arguments: $PYTEST_ADDOPTS"
201
+
python -mpytest
193
202
194
-
before_cache:
195
-
- rm -rf $HOME/.cache/matplotlib/tex.cache
196
-
- rm -rf $HOME/.cache/matplotlib/test_cache
203
+
before_cache:|
204
+
rm -rf $HOME/.cache/matplotlib/tex.cache
205
+
rm -rf $HOME/.cache/matplotlib/test_cache
197
206
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
207
+
after_failure: |
208
+
if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_REPO_SLUG == 'matplotlib/matplotlib' ]]; then
209
+
tar cjf result_images.tar.bz2 result_images
210
+
echo 'See "Uploading Artifacts" near the end of the log for the download URL'
211
+
else
212
+
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