Skip to content

Commit b568b6b

Browse files
committed
[BLD] Updated appveyor todo test.
1 parent b277f6e commit b568b6b

File tree

1 file changed

+27
-89
lines changed

1 file changed

+27
-89
lines changed

appveyor.yml

Lines changed: 27 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -1,108 +1,46 @@
11
environment:
22

3-
global:
4-
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
5-
# # /E:ON and /V:ON options are not enabled in the batch script intepreter
6-
# # See: http://stackoverflow.com/a/13751649/163740
7-
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\build_tools\\appveyor\\run_with_env.cmd"
8-
9-
ANACONDA_USER:
10-
secure: P3IsXaLLTzaSGYf/DU2Jlg==
11-
ANACONDA_PASSWD:
12-
secure: ISvE5kWbo1LEr5Uehs06Uw==
13-
143
matrix:
4+
- python : 27
5+
- python : 27-x64
6+
- python : 34
7+
- python : 34-x64
8+
- python : 35
9+
- python : 35-x64
1510

16-
- PYTHON: "C:\\Python27_64"
17-
PYTHON_VERSION: "2.7"
18-
PYTHON_ARCH: "64"
19-
CONDA_PY: "27"
20-
21-
- PYTHON: "C:\\Python33_64"
22-
PYTHON_VERSION: "3.3"
23-
PYTHON_ARCH: "64"
24-
CONDA_PY: "33"
25-
26-
- PYTHON: "C:\\Python34_64"
27-
PYTHON_VERSION: "3.4"
28-
PYTHON_ARCH: "64"
29-
CONDA_PY: "34"
30-
31-
- PYTHON: "C:\\Python35_64"
32-
PYTHON_VERSION: "3.5"
33-
PYTHON_ARCH: "64"
34-
CONDA_PY: "35"
11+
install:
3512

36-
- PYTHON: "C:\\Python27_32"
37-
PYTHON_VERSION: "2.7"
38-
PYTHON_ARCH: "32"
39-
CONDA_PY: "27"
13+
- "SET PATH=C:\\Python%PYTHON%;c:\\Python%PYTHON%\\scripts;%PATH%"
14+
- echo "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 > "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64/vcvars64.bat"
4015

41-
- PYTHON: "C:\\Python33_32"
42-
PYTHON_VERSION: "3.3"
43-
PYTHON_ARCH: "32"
44-
CONDA_PY: "33"
45-
46-
- PYTHON: "C:\\Python34_32"
47-
PYTHON_VERSION: "3.4"
48-
PYTHON_ARCH: "32"
49-
CONDA_PY: "34"
16+
# Check that we have the expected version and architecture for Python
17+
- python --version
18+
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
5019

51-
- PYTHON: "C:\\Python35_32"
52-
PYTHON_VERSION: "3.5"
53-
PYTHON_ARCH: "32"
54-
CONDA_PY: "35"
20+
# Install pip
21+
- python -m pip install --upgrade pip
5522

23+
# Install the build and runtime dependencies of the project.
24+
- pip install setuptools numpy six nose cython wheel
5625

57-
# We always use a 64-bit machine, but can build x86 distributions
58-
# # with the PYTHON_ARCH variable (which is used by CMD_IN_ENV).
59-
platform:
60-
- x64
26+
# Build the project
27+
- python setup.py build_ext --inplace
6128

62-
# # all our python builds have to happen in tests_script...
6329
build: false
6430

65-
init:
66-
- "ECHO %PYTHON_VERSION% %PYTHON%"
67-
68-
install:
69-
# this installs the appropriate Miniconda (Py2/Py3, 32/64 bit)
70-
# updates conda & installs: conda-build jinja2 anaconda-client
71-
- powershell .\build_tools\appveyor\install.ps1
72-
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
73-
- echo "install"
74-
- cd
75-
- ls -ltr
76-
77-
# this can conflict with git
78-
- cmd: rmdir C:\cygwin /s /q
79-
80-
# install our build environment
81-
- cmd: conda config --set show_channel_urls true --set always_yes true --set changeps1 false
82-
- cmd: conda update -q conda
83-
- cmd: conda config --set ssl_verify false
84-
85-
# add the pandas channel *before* defaults to have defaults take priority
86-
- cmd: conda config --add channels paulgc
87-
- cmd: conda config --remove channels defaults
88-
- cmd: conda config --add channels defaults
89-
- cmd: conda install anaconda-client
90-
91-
# this is now the downloaded conda...
92-
- cmd: conda info -a
93-
- cmd: anaconda logout
94-
- cmd: anaconda login --username %ANACONDA_USER% --password %ANACONDA_PASSWD% --hostname %APPVEYOR_JOB_ID%
95-
96-
# build em using the local source checkout in the correct windows env
97-
- cmd: '%CMD_IN_ENV% conda build conda.recipe -q'
31+
test_script:
32+
# Nosetests take care of unit tests
33+
- nosetests
9834

99-
- python build_tools\move-conda-package.py conda.recipe
100-
- cmd: anaconda upload --force *.tar.bz2
101-
- cmd: anaconda logout
35+
after_test:
36+
- ver
37+
- python setup.py bdist_wheel
38+
- python setup.py bdist_wininst
39+
- python setup.py bdist_msi
10240

10341
artifacts:
10442
# Archive the generated packages in the ci.appveyor.com build report.
105-
- path: '*.tar.bz2'
43+
- path: dist\*
10644

10745
on_success:
10846
- echo Build succesful!

0 commit comments

Comments
 (0)