@@ -17,35 +17,37 @@ environment:
1717
1818 matrix :
1919 # for testing purpose: numpy 1.8 on py2.7, for the rest use 1.10/latest
20- # theoretically the CONDA_INSTALL_LOCN could be only two: one for 32bit, one for 64bit
21- # but using one for the right python version is hopefully making it fast due to package caching.
22- - TARGET_ARCH : " x86"
23- CONDA_PY : " 27"
24- CONDA_NPY : " 18"
25- PYTHON_VERSION : " 2.7"
26- # this variable only influence pdf/svg tests, png tests are run on any platform
27- # only once, because it basically triples the testing times
28- # pick the one which seems to make the most problems
29- TEST_ALL_IMAGES : " yes"
30- CONDA_INSTALL_LOCN : " C:\\ Miniconda"
20+ # theoretically the CONDA_INSTALL_LOCN could be only two: one for 32bit,
21+ # one for 64bit because we construct envs anyway. But using one for the
22+ # right python version is hopefully making it fast due to package caching.
3123 - TARGET_ARCH : " x64"
3224 CONDA_PY : " 27"
3325 CONDA_NPY : " 18"
3426 PYTHON_VERSION : " 2.7"
35- TEST_ALL_IMAGES : " no"
27+ TEST_ALL : " no"
3628 CONDA_INSTALL_LOCN : " C:\\ Miniconda-x64"
3729 - TARGET_ARCH : " x64"
3830 CONDA_PY : " 34"
3931 CONDA_NPY : " 110"
4032 PYTHON_VERSION : " 3.4"
41- TEST_ALL_IMAGES : " no"
33+ TEST_ALL : " no"
4234 CONDA_INSTALL_LOCN : " C:\\ Miniconda3-x64"
4335 - TARGET_ARCH : " x64"
4436 CONDA_PY : " 35"
4537 CONDA_NPY : " 110"
4638 PYTHON_VERSION : " 3.5"
47- TEST_ALL_IMAGES : " no"
39+ TEST_ALL : " no"
4840 CONDA_INSTALL_LOCN : " C:\\ Miniconda35-x64"
41+ - TARGET_ARCH : " x86"
42+ CONDA_PY : " 27"
43+ CONDA_NPY : " 18"
44+ PYTHON_VERSION : " 2.7"
45+ # this variable influence pdf/svg and most importantly the latex related tests
46+ # which triples the runtime of the tests (7-8min vs 30min).
47+ # pick the one which seems to make the most problems and run it last, so that
48+ # the rest of the tests can give feedback earlier
49+ TEST_ALL : " yes"
50+ CONDA_INSTALL_LOCN : " C:\\ Miniconda"
4951
5052# We always use a 64-bit machine, but can build x86 distributions
5153# with the PYTHON_ARCH variable (which is used by CMD_IN_ENV).
@@ -75,9 +77,6 @@ install:
7577 # Fix the appveyor build environment to work with conda build
7678 # workaround for missing vcvars64.bat in py34 64bit
7779 - cmd : copy ci\appveyor\vcvars64.bat "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64"
78- # workaround for conda build on py27 prefering the normal installed
79- # VS tools instead of the also installed Py27 VS compiler (which wouldn't need this workarounds...)
80- - cmd : copy "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars64.bat" "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\vcvarsamd64.bat"
8180
8281 # For building, use a new environment which only includes the requirements for mpl
8382 # same things as the requirements in ci/conda_recipe/meta.yaml
@@ -116,23 +115,12 @@ test_script:
116115 - cmd : ' "%DUMPBIN%" /DEPENDENTS lib\\matplotlib\\_png*.pyd | findstr png.*.dll && exit /b 1 || exit /b 0'
117116
118117 # this are optional dependencies so that we don't skip so many tests...
119- # WORKAROUND: set miktex to the old version until I figured out whats wrong here...
120- - cmd : conda install -q pillow miktex=2.9.5857
121- # autoinstall latex packages (0=no, 1=autoinstall, 2=ask)
122- # this adds this to the registry!
123- - cmd : initexmf --set-config-value "[MPM]AutoInstall=1"
124- # we need to put the real exe files into PATH as subprocess can't call bat files
125- # this works for the "old" version of the miktex package, then next version should
126- # not need it
127- - set "PATH=%PATH%;%CONDA_PREFIX%\Library\miktex\miktex\bin"
128- # missing packages on conda-forge for ffmpeg avconv mencoder imagemagick inkscape
129- - cmd : conda install -q -c menpo ffmpeg # a repackaged version
118+ - cmd : if x%TEST_ALL% == xyes; conda install -q pillow miktex inkscape
119+ # missing packages on conda-forge for ffmpeg avconv mencoder imagemagick
120+ - cmd : if x%TEST_ALL% == xyes; conda install -q -c menpo ffmpeg # a repackaged version
130121 # This install sometimes failed randomly :-(
131122 # - cmd: choco install imagemagick
132- # only install inkscape during one test run as it increases the runtime of one
133- # test run from 13 min -> 30 min
134- - cmd : if x%TEST_ALL_IMAGES% == xyes; choco install inkscape
135- - cmd : if x%TEST_ALL_IMAGES% == xyes; set "PATH=%PATH%;C:\Program Files\Inkscape\inkscape.com"
123+
136124 # Test import of tkagg backend
137125 - python -c "import matplotlib as m; m.use('tkagg'); import matplotlib.pyplot as plt; print(plt.get_backend())"
138126 # tests
@@ -157,8 +145,7 @@ after_test:
157145 - cmd : path
158146 - cmd : where python
159147 - cmd : ' %CMD_IN_ENV% conda config --get channels'
160- # currently disabled as conda-build errors :-(
161- # - cmd: '%CMD_IN_ENV% conda build -q .\ci\conda_recipe'
148+ - cmd : ' %CMD_IN_ENV% conda build -q .\ci\conda_recipe'
162149
163150 # Move the conda package into the dist directory, to register it
164151 # as an "artifact" for Appveyor.
0 commit comments