@@ -11,9 +11,9 @@ environment:
11
11
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
12
12
# /E:ON and /V:ON options are not enabled in the batch script intepreter
13
13
# See: http://stackoverflow.com/a/13751649/163740
14
- CMD_IN_ENV : " cmd /E:ON /V:ON /C obvci_appveyor_python_build_env.cmd"
14
+ CMD_IN_ENV : cmd /E:ON /V:ON /C obvci_appveyor_python_build_env.cmd
15
15
# Workaround for https://github.com/conda/conda-build/issues/636
16
- PYTHONIOENCODING : " UTF-8"
16
+ PYTHONIOENCODING : UTF-8
17
17
PYTEST_ARGS : -ra --timeout=300 --durations=25 -n %NUMBER_OF_PROCESSORS% --cov-report= --cov=lib -m "not network"
18
18
PYTHONHASHSEED : 0 # Workaround for pytest-xdist flaky collection order
19
19
# https://github.com/pytest-dev/pytest/issues/920
@@ -60,27 +60,27 @@ cache:
60
60
- ' %USERPROFILE%\.cache\matplotlib'
61
61
62
62
init :
63
- - cmd : " ECHO %PYTHON_VERSION% %CONDA_INSTALL_LOCN%"
63
+ - echo %PYTHON_VERSION% %CONDA_INSTALL_LOCN%
64
64
65
65
install :
66
- - cmd : set PATH=%CONDA_INSTALL_LOCN%;%CONDA_INSTALL_LOCN%\scripts;%PATH%;
67
- - cmd : set PYTHONUNBUFFERED=1
66
+ - set PATH=%CONDA_INSTALL_LOCN%;%CONDA_INSTALL_LOCN%\scripts;%PATH%;
67
+ - set PYTHONUNBUFFERED=1
68
68
# for obvci_appveyor_python_build_env.cmd
69
- - cmd : conda install -c pelson/channel/development --yes --quiet obvious-ci
69
+ - conda install -c pelson/channel/development --yes --quiet obvious-ci
70
70
# for msinttypes and newer stuff
71
71
# conda-forge may serve outdated versions of certain packages (e.g. conda
72
72
# itself), so append it to the end of the list.
73
- - cmd : conda config --append channels conda-forge
74
- - cmd : conda config --set show_channel_urls yes
75
- - cmd : conda config --set always_yes true
73
+ - conda config --append channels conda-forge
74
+ - conda config --set show_channel_urls yes
75
+ - conda config --set always_yes true
76
76
# For building conda packages
77
- - cmd : conda install --yes conda-build jinja2 anaconda-client
77
+ - conda install --yes conda-build jinja2 anaconda-client
78
78
# this is now the downloaded conda...
79
79
- conda info -a
80
80
81
81
# Fix the appveyor build environment to work with conda build
82
82
# workaround for missing vcvars64.bat in py34 64bit
83
- - cmd : copy ci\appveyor\vcvars64.bat "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64"
83
+ - copy ci\appveyor\vcvars64.bat "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64"
84
84
85
85
# For building, use a new environment which only includes the requirements for mpl
86
86
# same things as the requirements in ci/conda_recipe/meta.yaml
@@ -91,16 +91,16 @@ install:
91
91
pyparsing pytz tornado "libpng>=1.6.21,<1.7" "zlib=1.2" "cycler>=0.10"
92
92
mock sphinx
93
93
- activate test-environment
94
- - cmd : echo %PYTHON_VERSION% %TARGET_ARCH%
95
- - cmd : IF %PYTHON_VERSION% == 2.7 conda install -q backports.functools_lru_cache
94
+ - echo %PYTHON_VERSION% %TARGET_ARCH%
95
+ - if %PYTHON_VERSION% == 2.7 conda install -q backports.functools_lru_cache
96
96
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124
97
97
- conda install -q pytest "pytest-cov>=2.3.1" pytest-timeout pytest-xdist
98
98
99
99
# Let the install prefer the static builds of the libs
100
100
- set LIBRARY_LIB=%CONDA_PREFIX%\Library\lib
101
- - cmd : ' mkdir lib || cmd /c "exit /b 0"'
102
- - copy /Y %LIBRARY_LIB%\zlibstatic.lib lib\z.lib
103
- - copy /Y %LIBRARY_LIB%\libpng_static.lib lib\png.lib
101
+ - mkdir lib || cmd /c "exit /b 0"
102
+ - copy /y %LIBRARY_LIB%\zlibstatic.lib lib\z.lib
103
+ - copy /y %LIBRARY_LIB%\libpng_static.lib lib\png.lib
104
104
# These z.lib / png.lib are not static versions but files which end up as
105
105
# dependencies to the dll file. This is fine for the conda build, but not here
106
106
# and for the wheels
@@ -117,18 +117,15 @@ test_script:
117
117
- ' %CMD_IN_ENV% pip install --no-deps -ve .'
118
118
# these should show no z, png, or freetype dll...
119
119
- set "DUMPBIN=%VS140COMNTOOLS%\..\..\VC\bin\dumpbin.exe"
120
- # - cmd: '"%DUMPBIN%" /DEPENDENTS lib\matplotlib\_png*.pyd'
121
- # - cmd: '"%DUMPBIN%" /DEPENDENTS lib\matplotlib\ft2font*.pyd'
122
- - cmd : ' "%DUMPBIN%" /DEPENDENTS lib\matplotlib\ft2font*.pyd | findstr freetype.*.dll && exit /b 1 || exit /b 0'
123
- - cmd : ' "%DUMPBIN%" /DEPENDENTS lib\\matplotlib\\_png*.pyd | findstr z.*.dll && exit /b 1 || exit /b 0'
124
- - cmd : ' "%DUMPBIN%" /DEPENDENTS lib\\matplotlib\\_png*.pyd | findstr png.*.dll && exit /b 1 || exit /b 0'
120
+ - ' "%DUMPBIN%" /DEPENDENTS lib\matplotlib\ft2font*.pyd | findstr freetype.*.dll && exit /b 1 || exit /b 0'
121
+ - ' "%DUMPBIN%" /DEPENDENTS lib\matplotlib\_png*.pyd | findstr z.*.dll && exit /b 1 || exit /b 0'
122
+ - ' "%DUMPBIN%" /DEPENDENTS lib\matplotlib\_png*.pyd | findstr png.*.dll && exit /b 1 || exit /b 0'
125
123
126
124
# this are optional dependencies so that we don't skip so many tests...
127
- - cmd : if x%TEST_ALL% == xyes; conda install -q pillow miktex inkscape
128
- # missing packages on conda-forge for ffmpeg avconv mencoder imagemagick
129
- - cmd : if x%TEST_ALL% == xyes; conda install -q -c menpo ffmpeg # a repackaged version
125
+ - if x%TEST_ALL% == xyes conda install -q ffmpeg inkscape miktex pillow
126
+ # missing packages on conda-forge for avconv mencoder imagemagick
130
127
# This install sometimes failed randomly :-(
131
- # - cmd: choco install imagemagick
128
+ # - choco install imagemagick
132
129
133
130
# Test import of tkagg backend
134
131
- python -c "import matplotlib as m; m.use('tkagg'); import matplotlib.pyplot as plt; print(plt.get_backend())"
@@ -145,26 +142,26 @@ after_test:
145
142
146
143
# Build the wheel with the static libs
147
144
# Hide the output, the copied files really clutter the build log...
148
- - cmd : ' %CMD_IN_ENV% python setup.py bdist_wheel > NUL:'
145
+ - ' %CMD_IN_ENV% python setup.py bdist_wheel > NUL:'
149
146
150
147
# And now the conda build after a cleanup...
151
148
# cleanup build files so that they don't pollute the conda build but keep the wheel in dist...
152
- - cmd : git clean -d -x -f -e dist/
149
+ - git clean -xdfq -e dist/
153
150
# cleanup the environment so that the test-environment does not leak into the conda build...
154
- - cmd : set MPLBASEDIRLIST=
155
- - cmd : set LIBRARY_LIB=
156
- - cmd : deactivate
157
- - cmd : path
158
- - cmd : where python
159
- - cmd : ' %CMD_IN_ENV% conda config --get channels'
160
- - cmd : ' %CMD_IN_ENV% conda build -q .\ci\conda_recipe'
151
+ - set MPLBASEDIRLIST=
152
+ - set LIBRARY_LIB=
153
+ - deactivate
154
+ - path
155
+ - where python
156
+ - ' %CMD_IN_ENV% conda config --get channels'
157
+ - ' %CMD_IN_ENV% conda build -q .\ci\conda_recipe'
161
158
162
159
# Move the conda package into the dist directory, to register it
163
160
# as an "artifact" for Appveyor.
164
- - cmd : ' copy /Y %CONDA_INSTALL_LOCN%\conda-bld\win-32\*.bz2 dist || cmd /c "exit /b 0"'
165
- - cmd : ' copy /Y %CONDA_INSTALL_LOCN%\conda-bld\win-64\*.bz2 dist || cmd /c "exit /b 0"'
166
- - cmd : dir dist\
167
- - cmd : echo finished...
161
+ - copy /y %CONDA_INSTALL_LOCN%\conda-bld\win-32\*.bz2 dist || cmd /c "exit /b 0"
162
+ - copy /y %CONDA_INSTALL_LOCN%\conda-bld\win-64\*.bz2 dist || cmd /c "exit /b 0"
163
+ - dir dist\
164
+ - echo finished...
168
165
169
166
artifacts :
170
167
- path : dist\*
@@ -179,7 +176,7 @@ on_finish:
179
176
on_failure :
180
177
- python tools/visualize_tests.py --no-browser
181
178
- echo zipping images after a failure...
182
- - 7z a result_images.zip result_images\ |grep -v "Compressing"
179
+ - 7z a result_images.zip result_images\ | grep -v "Compressing"
183
180
- appveyor PushArtifact result_images.zip
184
181
185
182
matrix :
0 commit comments