forked from pandeylab/pyquant
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
114 lines (93 loc) · 2.98 KB
/
Copy pathappveyor.yml
File metadata and controls
114 lines (93 loc) · 2.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# largely taken from
# https://raw.githubusercontent.com/pydata/pandas/master/appveyor.yml
# https://bitbucket.org/pygame/pygame/pull-requests/45/create-python-wheel-builds-using-appveyor/diff
branches:
only:
- build
matrix:
fast_finish: true # immediately finish build once one of the jobs fails.
environment:
global:
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
# /E:ON and /V:ON options are not enabled in the batch script intepreter
# See: http://stackoverflow.com/a/13751649/163740
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\ci\\run_with_env.cmd"
DISTRIBUTIONS: "bdist_wheel"
PYPI_PASS:
secure: MT+Dz2JEdUGkHuJr7LW3qA==
PYPI_USER:
secure: NnjqwC7S1x2ImdY12RoVjg==
matrix:
- PYTHON: "C:\\Python34_64"
PYTHON_VERSION: "3.4"
PYTHON_ARCH: "64"
CONDA_PY: "34"
CONDA_NPY: "110"
- PYTHON: "C:\\Python34_32"
PYTHON_VERSION: "3.4"
PYTHON_ARCH: "32"
CONDA_PY: "34"
CONDA_NPY: "110"
- PYTHON: "C:\\Python27_64"
PYTHON_VERSION: "2.7"
PYTHON_ARCH: "64"
CONDA_PY: "27"
CONDA_NPY: "110"
DISTRIBUTIONS: "sdist bdist_wheel"
- PYTHON: "C:\\Python27_32"
PYTHON_VERSION: "2.7"
PYTHON_ARCH: "32"
CONDA_PY: "27"
CONDA_NPY: "110"
- PYTHON: "C:\\Python35_64"
PYTHON_VERSION: "3.5"
PYTHON_ARCH: "64"
CONDA_PY: "35"
CONDA_NPY: "110"
- PYTHON: "C:\\Python35_32"
PYTHON_VERSION: "3.5"
PYTHON_ARCH: "32"
CONDA_PY: "35"
CONDA_NPY: "110"
build: off
# We always use a 64-bit machine, but can build x86 distributions
# with the PYTHON_ARCH variable (which is used by CMD_IN_ENV).
platform:
- x64
init:
- "ECHO %PYTHON_VERSION% %PYTHON%"
install:
# this installs the appropriate Miniconda (Py2/Py3, 32/64 bit),
- powershell .\ci\install.ps1
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
- echo "install"
- cd
- ls -ltr
- git tag --sort v:refname
# install our build environment
- cmd: conda config --set show_channel_urls yes --set always_yes yes --set changeps1 no
- cmd: conda update -q conda
- cmd: conda config --set ssl_verify false
# this is now the downloaded conda...
- conda info -a
# build em using the local source checkout in the correct windows env
- conda install conda-build
# create our env
- cmd: conda create -q -n pyquant python=%PYTHON_VERSION% nose pandas scipy cython lxml scikit-learn patsy
- cmd: activate pyquant
- cmd: pip install git+git://github.com/pandeylab/pythomics.git
- cmd: pip install wheel twine
#- ps: conda install -q (conda build conda.recipe -q --output --no-test)
- cmd: set HOME=%APPVEYOR_BUILD_FOLDER%
- cmd: '%CMD_IN_ENV% python.exe setup.py build'
- cmd: '%CMD_IN_ENV% python.exe setup.py build_ext --inplace'
test_script:
# tests
- pip freeze
- ls -ltr
after_test:
- "python.exe setup.py %DISTRIBUTIONS%"
artifacts:
- path: dist\*
deploy_script:
- cmd: "twine upload -u %PYPI_USER% -p %PYPI_PASS% dist/*"