@@ -17,35 +17,37 @@ environment:
17
17
18
18
matrix :
19
19
# 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.
31
23
- TARGET_ARCH : " x64"
32
24
CONDA_PY : " 27"
33
25
CONDA_NPY : " 18"
34
26
PYTHON_VERSION : " 2.7"
35
- TEST_ALL_IMAGES : " no"
27
+ TEST_ALL : " no"
36
28
CONDA_INSTALL_LOCN : " C:\\ Miniconda-x64"
37
29
- TARGET_ARCH : " x64"
38
30
CONDA_PY : " 34"
39
31
CONDA_NPY : " 110"
40
32
PYTHON_VERSION : " 3.4"
41
- TEST_ALL_IMAGES : " no"
33
+ TEST_ALL : " no"
42
34
CONDA_INSTALL_LOCN : " C:\\ Miniconda3-x64"
43
35
- TARGET_ARCH : " x64"
44
36
CONDA_PY : " 35"
45
37
CONDA_NPY : " 110"
46
38
PYTHON_VERSION : " 3.5"
47
- TEST_ALL_IMAGES : " no"
39
+ TEST_ALL : " no"
48
40
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"
49
51
50
52
# We always use a 64-bit machine, but can build x86 distributions
51
53
# with the PYTHON_ARCH variable (which is used by CMD_IN_ENV).
@@ -75,9 +77,6 @@ install:
75
77
# Fix the appveyor build environment to work with conda build
76
78
# workaround for missing vcvars64.bat in py34 64bit
77
79
- 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"
81
80
82
81
# For building, use a new environment which only includes the requirements for mpl
83
82
# same things as the requirements in ci/conda_recipe/meta.yaml
@@ -116,23 +115,12 @@ test_script:
116
115
- cmd : ' "%DUMPBIN%" /DEPENDENTS lib\\matplotlib\\_png*.pyd | findstr png.*.dll && exit /b 1 || exit /b 0'
117
116
118
117
# 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
130
121
# This install sometimes failed randomly :-(
131
122
# - 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
+
136
124
# Test import of tkagg backend
137
125
- python -c "import matplotlib as m; m.use('tkagg'); import matplotlib.pyplot as plt; print(plt.get_backend())"
138
126
# tests
@@ -157,8 +145,7 @@ after_test:
157
145
- cmd : path
158
146
- cmd : where python
159
147
- 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'
162
149
163
150
# Move the conda package into the dist directory, to register it
164
151
# as an "artifact" for Appveyor.
0 commit comments