@@ -11,33 +11,31 @@ 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 .\\ 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"
15
18
16
19
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"
32
22
CONDA_PY : " 27"
33
23
CONDA_NPY : " 18"
34
-
35
- - PYTHON : " C:\\ Python27_32"
36
24
PYTHON_VERSION : " 2.7"
37
- PYTHON_ARCH : " 32 "
25
+ - TARGET_ARCH : " x64 "
38
26
CONDA_PY : " 27"
39
27
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
+
41
39
# We always use a 64-bit machine, but can build x86 distributions
42
40
# with the PYTHON_ARCH variable (which is used by CMD_IN_ENV).
43
41
platform :
@@ -47,17 +45,21 @@ platform:
47
45
build : false
48
46
49
47
init :
50
- - " ECHO %PYTHON_VERSION% %PYTHON %"
48
+ - " ECHO %PYTHON_VERSION% %CONDA_INSTALL_LOCN %"
51
49
52
50
install :
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
55
57
- cmd : conda config --set show_channel_urls yes
56
58
# for msinttypes
57
59
- cmd : conda config --add channels conda-forge
58
60
# this is now the downloaded conda...
59
61
- conda info -a
60
- # same things as in tools /conda_recipe
62
+ # same things as the requirements in ci /conda_recipe/meta.yaml
61
63
- 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
62
64
- activate test-environment
63
65
# This is needed for the installer to find the dlls...
@@ -89,8 +91,8 @@ after_test:
89
91
- cmd : ' %CMD_IN_ENV% conda build .\ci\conda_recipe'
90
92
# Move the conda package into the dist directory, to register it
91
93
# 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"'
94
96
- cmd : dir .\dist\
95
97
96
98
artifacts :
0 commit comments