Fix usage of set command

Fix usage of set command

Fix set command again

Fix mpl directory for python 2.7
This commit is contained in:
Steven Silvester
2014-12-14 12:26:42 -06:00
parent 68547f0a8a
commit 12248e18e7
2 changed files with 9 additions and 1 deletions
+2
View File
@@ -64,3 +64,5 @@ section_end () {
export -f section
export -f section_end
export -f retry
set +ex
+7 -1
View File
@@ -73,11 +73,17 @@ section_end "Install optional dependencies"
section "Run doc examples"
# Matplotlib settings - do not show figures during doc examples
MPL_DIR=$HOME/.config/matplotlib
if [[ $TRAVIS_PYTHON_VERSION == 2.7* ]]; then
MPL_DIR=$HOME/.matplotlib
else
MPL_DIR=$HOME/.config/matplotlib
fi
mkdir -p $MPL_DIR
touch $MPL_DIR/matplotlibrc
echo 'backend : Template' > $MPL_DIR/matplotlibrc
for f in doc/examples/*.py; do
python "$f"
if [ $? -ne 0 ]; then