From a214bff15ac9e60cd3cc4bd382d05821cdc746e5 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Mon, 1 Aug 2016 16:10:13 -0400 Subject: [PATCH 1/2] Delete font cache in one of the configurations To test rebuilding it --- .travis.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 102795e06e36..dfb11f8a4767 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,6 +45,7 @@ env: - TEST_ARGS=--no-pep8 - NOSE_ARGS="--processes=$NPROC --process-timeout=300" - PYTHON_ARGS= + - DELETE_FONT_CACHE= language: python @@ -55,7 +56,7 @@ matrix: - python: 3.4 env: PYTHON_ARGS=-OO - python: 3.5 - env: PANDAS=pandas NOSE_ARGS=--with-coverage + env: PANDAS=pandas NOSE_ARGS=--with-coverage DELETE_FONT_CACHE=1 - python: 3.5 env: TEST_ARGS=--pep8 - python: 3.5 @@ -139,10 +140,13 @@ script: MPLBACKEND="tkagg" python -c 'import matplotlib.pyplot as plt; print(plt.get_backend())' echo The following args are passed to nose $NOSE_ARGS if [[ $BUILD_DOCS == false ]]; then + if [[ $DELETE_FONT_CACHE == 1]]; then + rm -rf ~/.cache/matplotlib + fi export MPL_REPO_DIR=$PWD # needed for pep8-conformance test of the examples if [[ $TRAVIS_OS_NAME == 'osx' ]]; then python tests.py $NOSE_ARGS $TEST_ARGS - else + else gdb -return-child-result -batch -ex r -ex bt --args python $PYTHON_ARGS tests.py $NOSE_ARGS $TEST_ARGS fi else From 62df63bf7d75e85dffcdd2b65902b238890d2d12 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Tue, 2 Aug 2016 13:10:43 -0400 Subject: [PATCH 2/2] Fix syntax --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index dfb11f8a4767..c4f4fbb7de55 100644 --- a/.travis.yml +++ b/.travis.yml @@ -140,7 +140,7 @@ script: MPLBACKEND="tkagg" python -c 'import matplotlib.pyplot as plt; print(plt.get_backend())' echo The following args are passed to nose $NOSE_ARGS if [[ $BUILD_DOCS == false ]]; then - if [[ $DELETE_FONT_CACHE == 1]]; then + if [[ $DELETE_FONT_CACHE == 1 ]]; then rm -rf ~/.cache/matplotlib fi export MPL_REPO_DIR=$PWD # needed for pep8-conformance test of the examples