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
184
- |
182
185
# Install matplotlib
183
186
python -mpip install -ve .
184
187
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
188
+
before_script: |
189
+
if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
190
+
export DISPLAY=:99.0
191
+
sh -e /etc/init.d/xvfb start
192
+
fi
193
+
if [[ $DELETE_FONT_CACHE == 1 ]]; then
194
+
rm -rf ~/.cache/matplotlib
195
+
fi
191
196
192
-
script: ci/travis/test_script.sh
197
+
script: |
198
+
echo "Calling pytest with the following arguments: $PYTEST_ADDOPTS"
199
+
python -mpytest
193
200
194
-
before_cache:
195
-
- rm -rf $HOME/.cache/matplotlib/tex.cache
196
-
- rm -rf $HOME/.cache/matplotlib/test_cache
201
+
before_cache:|
202
+
rm -rf $HOME/.cache/matplotlib/tex.cache
203
+
rm -rf $HOME/.cache/matplotlib/test_cache
197
204
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
205
+
after_failure: |
206
+
if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_REPO_SLUG == 'matplotlib/matplotlib' ]]; then
207
+
tar cjf result_images.tar.bz2 result_images
208
+
echo 'See "Uploading Artifacts" near the end of the log for the download URL'
209
+
else
210
+
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