@@ -11,33 +11,31 @@ environment:
1111 # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
1212 # /E:ON and /V:ON options are not enabled in the batch script intepreter
1313 # See: http://stackoverflow.com/a/13751649/163740
14- CMD_IN_ENV : " cmd /E:ON /V:ON /C .\\ ci\\ appveyor\\ run_with_env.cmd"
14+ CMD_IN_ENV : " cmd /E:ON /V:ON /C obvci_appveyor_python_build_env.cmd"
15+ CONDA_INSTALL_LOCN : " C:\\ conda"
16+ # Workaround for https://github.com/conda/conda-build/issues/636
17+ PYTHONIOENCODING : " UTF-8"
1518
1619 matrix :
17- - PYTHON : " C:\\ Python34_64"
18- PYTHON_VERSION : " 3.4"
19- PYTHON_ARCH : " 64"
20- CONDA_PY : " 34"
21- CONDA_NPY : " 110"
22-
23- - PYTHON : " C:\\ Python35_64"
24- PYTHON_VERSION : " 3.5"
25- PYTHON_ARCH : " 64"
26- CONDA_PY : " 35"
27- CONDA_NPY : " 110"
28-
29- - PYTHON : " C:\\ Python27_64"
30- PYTHON_VERSION : " 2.7"
31- PYTHON_ARCH : " 64"
20+ # for testing purpose: numpy 1.8 on py2.7, for the rest use 1.10/latest
21+ - TARGET_ARCH : " x86"
3222 CONDA_PY : " 27"
3323 CONDA_NPY : " 18"
34-
35- - PYTHON : " C:\\ Python27_32"
3624 PYTHON_VERSION : " 2.7"
37- PYTHON_ARCH : " 32 "
25+ - TARGET_ARCH : " x64 "
3826 CONDA_PY : " 27"
3927 CONDA_NPY : " 18"
40-
28+ PYTHON_VERSION : " 2.7"
29+ - TARGET_ARCH : " x64"
30+ CONDA_PY : " 34"
31+ CONDA_NPY : " 110"
32+ PYTHON_VERSION : " 3.4"
33+ - TARGET_ARCH : " x64"
34+ CONDA_PY : " 35"
35+ CONDA_NPY : " 110"
36+ PYTHON_VERSION : " 3.5"
37+
38+
4139# We always use a 64-bit machine, but can build x86 distributions
4240# with the PYTHON_ARCH variable (which is used by CMD_IN_ENV).
4341platform :
@@ -47,17 +45,21 @@ platform:
4745build : false
4846
4947init :
50- - " ECHO %PYTHON_VERSION% %PYTHON %"
48+ - " ECHO %PYTHON_VERSION% %CONDA_INSTALL_LOCN %"
5149
5250install :
53- - powershell .\ci\appveyor\install.ps1
54- - SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
51+ - appveyor DownloadFile "https://raw.githubusercontent.com/pelson/Obvious-CI/master/bootstrap-obvious-ci-and-miniconda.py"
52+ - cmd : python bootstrap-obvious-ci-and-miniconda.py %CONDA_INSTALL_LOCN% %TARGET_ARCH% %CONDA_PY:~0,1% --without-obvci
53+ - cmd : set PATH=%PATH%;%CONDA_INSTALL_LOCN%;%CONDA_INSTALL_LOCN%\scripts
54+ - cmd : set PYTHONUNBUFFERED=1
55+ - cmd : conda install -c http://conda.anaconda.org/pelson/channel/development --yes --quiet obvious-ci
56+ - cmd : obvci_install_conda_build_tools.py
5557 - cmd : conda config --set show_channel_urls yes
5658 # for msinttypes
5759 - cmd : conda config --add channels conda-forge
5860 # this is now the downloaded conda...
5961 - conda info -a
60- # same things as in tools /conda_recipe
62+ # same things as the requirements in ci /conda_recipe/meta.yaml
6163 - 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
6264 - activate test-environment
6365 # This is needed for the installer to find the dlls...
@@ -89,8 +91,8 @@ after_test:
8991 - cmd : ' %CMD_IN_ENV% conda build .\ci\conda_recipe'
9092 # Move the conda package into the dist directory, to register it
9193 # as an "artifact" for Appveyor.
92- - cmd : ' copy /Y %PYTHON %\conda-bld\win-32\*.bz2 dist || cmd /c "exit /b 0"'
93- - cmd : ' copy /Y %PYTHON %\conda-bld\win-64\*.bz2 dist || cmd /c "exit /b 0"'
94+ - cmd : ' copy /Y %CONDA_INSTALL_LOCN %\conda-bld\win-32\*.bz2 dist || cmd /c "exit /b 0"'
95+ - cmd : ' copy /Y %CONDA_INSTALL_LOCN %\conda-bld\win-64\*.bz2 dist || cmd /c "exit /b 0"'
9496 - cmd : dir .\dist\
9597
9698artifacts :
0 commit comments