Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 833f903

Browse files
committed
Appveyor: test all imagetypes in imagecomp tests only once
This is mainly because the additional tests (which are otherwise skipped) increase the runtime of one test run (we have 4) from 13min to 30mins and thereby increasing one complete Appveyor run from 40min to 2 hours. With this change, we only have 30+3*13min. The py27 test was chosen because up it made the most problems during this Appveyor/Windows fixing round...
1 parent c6740fb commit 833f903

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

appveyor.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,25 @@ environment:
2323
CONDA_PY: "27"
2424
CONDA_NPY: "18"
2525
PYTHON_VERSION: "2.7"
26+
TEST_ALL_IMAGES: "no"
2627
CONDA_INSTALL_LOCN: "C:\\Miniconda"
2728
- TARGET_ARCH: "x64"
2829
CONDA_PY: "27"
2930
CONDA_NPY: "18"
3031
PYTHON_VERSION: "2.7"
32+
TEST_ALL_IMAGES: "yes" # only once, pick the one which made the most problems
3133
CONDA_INSTALL_LOCN: "C:\\Miniconda-x64"
3234
- TARGET_ARCH: "x64"
3335
CONDA_PY: "34"
3436
CONDA_NPY: "110"
3537
PYTHON_VERSION: "3.4"
38+
TEST_ALL_IMAGES: "no"
3639
CONDA_INSTALL_LOCN: "C:\\Miniconda3-x64"
3740
- TARGET_ARCH: "x64"
3841
CONDA_PY: "35"
3942
CONDA_NPY: "110"
4043
PYTHON_VERSION: "3.5"
44+
TEST_ALL_IMAGES: "no"
4145
CONDA_INSTALL_LOCN: "C:\\Miniconda35-x64"
4246

4347
# We always use a 64-bit machine, but can build x86 distributions
@@ -121,10 +125,10 @@ test_script:
121125
- cmd: conda install -q -c menpo ffmpeg # a repackaged version
122126
# This install sometimes failed randomly :-(
123127
#- cmd: choco install imagemagick
124-
- cmd: choco install inkscape
125-
- set "PATH=%PATH%;C:\Program Files\Inkscape\inkscape.com"
126-
- dir "C:\Program Files\Inkscape\"
127-
128+
# only install inkscape during one test run as it increases the runtime of one
129+
# test run from 13 min -> 30 min
130+
- cmd: if x%TEST_ALL_IMAGES% == xyes; choco install inkscape
131+
- cmd: if x%TEST_ALL_IMAGES% == xyes; set "PATH=%PATH%;C:\Program Files\Inkscape\inkscape.com"
128132
# Test import of tkagg backend
129133
- python -c "import matplotlib as m; m.use('tkagg'); import matplotlib.pyplot as plt; print(plt.get_backend())"
130134
# tests

0 commit comments

Comments
 (0)