@@ -11,41 +11,26 @@ branches:
11
11
environment :
12
12
13
13
global :
14
- # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
15
- # /E:ON and /V:ON options are not enabled in the batch script intepreter
16
- # See: http://stackoverflow.com/a/13751649/163740
17
- CMD_IN_ENV : cmd /E:ON /V:ON /C obvci_appveyor_python_build_env.cmd
18
- # Workaround for https://github.com/conda/conda-build/issues/636
19
14
PYTHONIOENCODING : UTF-8
20
15
PYTEST_ARGS : -rawR --numprocesses=auto --timeout=300 --durations=25
21
16
--cov-report= --cov=lib -m "not network"
22
17
23
18
matrix :
24
- # for testing purpose: numpy 1.8 on py2.7, for the rest use 1.10/latest
25
19
# theoretically the CONDA_INSTALL_LOCN could be only two: one for 32bit,
26
20
# one for 64bit because we construct envs anyway. But using one for the
27
21
# right python version is hopefully making it fast due to package caching.
28
- - TARGET_ARCH : " x64"
29
- CONDA_PY : " 27"
30
- CONDA_NPY : " 18"
31
- PYTHON_VERSION : " 2.7"
32
- TEST_ALL : " no"
22
+ - PYTHON_VERSION : " 2.7"
33
23
CONDA_INSTALL_LOCN : " C:\\ Miniconda-x64"
34
- - TARGET_ARCH : " x64"
35
- CONDA_PY : " 35"
36
- CONDA_NPY : " 110"
37
- PYTHON_VERSION : " 3.5"
24
+ TEST_ALL : " no"
25
+ - PYTHON_VERSION : " 3.5"
38
26
CONDA_INSTALL_LOCN : " C:\\ Miniconda35-x64"
39
27
TEST_ALL : " no"
40
- - TARGET_ARCH : " x64"
41
- CONDA_PY : " 36"
42
- PYTHON_VERSION : " 3.6"
43
- CONDA_NPY : " 111"
28
+ - PYTHON_VERSION : " 3.6"
44
29
CONDA_INSTALL_LOCN : " C:\\ Miniconda36-x64"
45
30
TEST_ALL : " no"
46
31
47
32
# We always use a 64-bit machine, but can build x86 distributions
48
- # with the PYTHON_ARCH variable (which is used by CMD_IN_ENV).
33
+ # with the PYTHON_ARCH variable
49
34
platform :
50
35
- x64
51
36
@@ -62,16 +47,11 @@ init:
62
47
install :
63
48
- set PATH=%CONDA_INSTALL_LOCN%;%CONDA_INSTALL_LOCN%\scripts;%PATH%;
64
49
- set PYTHONUNBUFFERED=1
65
- # for obvci_appveyor_python_build_env.cmd
66
- - conda update --all --yes
67
- - conda install anaconda-client=1.6.3 --yes
68
- - conda install -c conda-forge --yes obvious-ci
69
50
# for msinttypes and newer stuff
70
- - conda config --prepend channels conda-forge
71
- - conda config --set show_channel_urls yes
72
51
- conda config --set always_yes true
73
- # For building conda packages
74
- - conda install --yes conda-build jinja2 anaconda-client
52
+ - conda update --all
53
+ - conda config --set show_channel_urls yes
54
+ - conda config --prepend channels conda-forge
75
55
# this is now the downloaded conda...
76
56
- conda info -a
77
57
@@ -116,7 +96,7 @@ install:
116
96
117
97
test_script :
118
98
# Now build the thing..
119
- - ' %CMD_IN_ENV% pip install -ve .'
99
+ - pip install -ve .
120
100
# these should show no z, png, or freetype dll...
121
101
- set "DUMPBIN=%VS140COMNTOOLS%\..\..\VC\bin\dumpbin.exe"
122
102
- ' "%DUMPBIN%" /DEPENDENTS lib\matplotlib\ft2font*.pyd | findstr freetype.*.dll && exit /b 1 || exit /b 0'
@@ -136,28 +116,9 @@ test_script:
136
116
- python tests.py %PYTEST_ARGS%
137
117
138
118
after_test :
139
- # After the tests were a success, build packages (wheels and conda)
140
-
141
- # Build the wheel with the static libs
119
+ # After the tests were a success, build wheels with the static libs
142
120
# Hide the output, the copied files really clutter the build log...
143
- - ' %CMD_IN_ENV% python setup.py bdist_wheel > NUL:'
144
-
145
- # And now the conda build after a cleanup...
146
- # cleanup build files so that they don't pollute the conda build but keep the wheel in dist...
147
- - git clean -xdfq -e dist/
148
- # cleanup the environment so that the test-environment does not leak into the conda build...
149
- - set MPLBASEDIRLIST=
150
- - set LIBRARY_LIB=
151
- - deactivate
152
- - path
153
- - where python
154
- - ' %CMD_IN_ENV% conda config --get channels'
155
- - ' %CMD_IN_ENV% conda build -q .\ci\conda_recipe'
156
-
157
- # Move the conda package into the dist directory, to register it
158
- # as an "artifact" for Appveyor.
159
- - copy /y %CONDA_INSTALL_LOCN%\conda-bld\win-32\*.bz2 dist || cmd /c "exit /b 0"
160
- - copy /y %CONDA_INSTALL_LOCN%\conda-bld\win-64\*.bz2 dist || cmd /c "exit /b 0"
121
+ - ' python setup.py bdist_wheel > NUL:'
161
122
- dir dist\
162
123
- echo finished...
163
124
0 commit comments