8000 Merge pull request #6879 from mdboom/delete-font-cache-in-testing · matplotlib/matplotlib@e6fccba · GitHub
[go: up one dir, main page]

Skip to content

Commit e6fccba

Browse files
authored
Merge pull request #6879 from mdboom/delete-font-cache-in-testing
CI: Delete font cache in one of the configurations
2 parents 57c73ed + 62df63b commit e6fccba

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ env:
4545
- TEST_ARGS=--no-pep8
4646
- NOSE_ARGS="--processes=$NPROC --process-timeout=300"
4747
- PYTHON_ARGS=
48+
- DELETE_FONT_CACHE=
4849

4950
language: python
5051

@@ -55,7 +56,7 @@ matrix:
5556
- python: 3.4
5657
env: PYTHON_ARGS=-OO
5758
- python: 3.5
58-
env: PANDAS=pandas NOSE_ARGS=--with-coverage
59+
env: PANDAS=pandas NOSE_ARGS=--with-coverage DELETE_FONT_CACHE=1
5960
- python: 3.5
6061
env: TEST_ARGS=--pep8
6162
- python: 3.5
@@ -139,10 +140,13 @@ script:
139140
MPLBACKEND="tkagg" python -c 'import matplotlib.pyplot as plt; print(plt.get_backend())'
140141
echo The following args are passed to nose $NOSE_ARGS
141142
if [[ $BUILD_DOCS == false ]]; then
143+
if [[ $DELETE_FONT_CACHE == 1 ]]; then
144+
rm -rf ~/.cache/matplotlib
145+
fi
142146
export MPL_REPO_DIR=$PWD # needed for pep8-conformance test of the examples
143147
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
1 55A0 44148
python tests.py $NOSE_ARGS $TEST_ARGS
145-
else
149+
else
146150
gdb -return-child-result -batch -ex r -ex bt --args python $PYTHON_ARGS tests.py $NOSE_ARGS $TEST_ARGS
147151
fi
148152
else

0 commit comments

Comments
 (0)
0