mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-28 11:25:42 +08:00
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:
@@ -64,3 +64,5 @@ section_end () {
|
||||
export -f section
|
||||
export -f section_end
|
||||
export -f retry
|
||||
|
||||
set +ex
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user