1- # With infos from
1+ # With infos from
22# http://tjelvarolsson.com/blog/how-to-continuously-test-your-python-code-on-windows-using-appveyor/
33# https://packaging.python.org/en/latest/appveyor/
44# https://github.com/rmcgibbo/python-appveyor-conda-example
@@ -62,12 +62,18 @@ install:
6262 # same things as the requirements in ci/conda_recipe/meta.yaml
6363 - cmd : conda create -y -q -n test-environment python=%PYTHON_VERSION% pip setuptools numpy python-dateutil freetype=2.5 msinttypes tk pyparsing pytz tornado libpng zlib pyqt cycler nose mock
6464 - activate test-environment
65+ - cmd : echo %PYTHON_VERSION% %TARGET_ARCH%
66+ - cmd : IF %PYTHON_VERSION% == 2.7 conda install -y functools32
6567 # This is needed for the installer to find the dlls...
6668 - set LIBRARY_LIB=%CONDA_DEFAULT_ENV%\Library\lib
6769 - cmd : ' mkdir lib || cmd /c "exit /b 0"'
68- - copy %LIBRARY_LIB%\zlibstatic.lib lib\z.lib
70+ - copy %LIBRARY_LIB%\zlibstatic.lib lib\z.lib
6971 - copy %LIBRARY_LIB%\libpng_static.lib lib\png.lib
7072 - set MPLBASEDIRLIST=%CONDA_DEFAULT_ENV%\Library\;.
73+ # enables the local freetype build
74+ - copy ci\travis\setup.cfg .
75+ # There is no 2.7 64bit freetype build configuration...
76+ - cmd : IF %PYTHON_VERSION% == 2.7 (IF %TARGET_ARCH% == x64 (del setup.cfg))
7177 # Show the installed packages + versions
7278 - conda list
7379
@@ -80,7 +86,7 @@ test_script:
8086
8187after_test :
8288 # After the tests were a success, build packages (wheels and conda)
83-
89+
8490 # There is a bug in wheels which prevents building wheels when the package uses namespaces
8591 - cmd : ' %CMD_IN_ENV% python setup.py bdist_wheel'
8692 # Note also that our setup.py script, which is called by conda-build, writes
@@ -90,15 +96,15 @@ after_test:
9096 - cmd : ' %CMD_IN_ENV% conda config --get channels'
9197 - cmd : ' %CMD_IN_ENV% conda build .\ci\conda_recipe'
9298 # Move the conda package into the dist directory, to register it
93- # as an "artifact" for Appveyor.
99+ # as an "artifact" for Appveyor.
94100 - cmd : ' copy /Y %CONDA_INSTALL_LOCN%\conda-bld\win-32\*.bz2 dist || cmd /c "exit /b 0"'
95101 - cmd : ' copy /Y %CONDA_INSTALL_LOCN%\conda-bld\win-64\*.bz2 dist || cmd /c "exit /b 0"'
96102 - cmd : dir .\dist\
97103
98104artifacts :
99105 - path : dist\*
100106 name : packages
101-
107+
102108 - path : result_images\*
103109 name : result_images
104110 type : zip
0 commit comments