This repository was archived by the owner on Dec 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathappveyor.yml
More file actions
130 lines (107 loc) · 3.53 KB
/
appveyor.yml
File metadata and controls
130 lines (107 loc) · 3.53 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# vim ft=yaml
# CI on Windows via appveyor
# Largely from:
# https://github.com/ogrisel/python-appveyor-demo/blob/master/appveyor.yml
#
# Builds current version in submodule
# To chose version to build, update submodule
# os: Visual Studio 2017
environment:
global:
BUILD_COMMIT: v2.7.2
NP_BUILD_DEP: "1.14.5"
NP_TEST_DEP: "1.14.5"
WHEELHOUSE_UPLOADER_USERNAME: travis-worker
WHEELHOUSE_UPLOADER_SECRET:
secure:
9s0gdDGnNnTt7hvyNpn0/ZzOMGPdwPp2SewFTfGzYk7uI+rdAN9rFq2D1gAP4NQh
matrix:
- PYTHON: "C:\\Python27"
PYTHON_VERSION: "2.7.x" # currently 2.7.11
PYTHON_ARCH: "32"
- PYTHON: "C:\\Python27-x64"
PYTHON_VERSION: "2.7.x" # currently 2.7.11
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python35"
PYTHON_VERSION: "3.5.x" # currently 3.5.1
PYTHON_ARCH: "32"
- PYTHON: "C:\\Python35-x64"
PYTHON_VERSION: "3.5.x" # currently 3.5.1
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python36"
PYTHON_VERSION: "3.6.x"
PYTHON_ARCH: "32"
NP_BUILD_DEP: "1.14.5"
NP_TEST_DEP: "1.14.5"
- PYTHON: "C:\\Python36-x64"
PYTHON_VERSION: "3.6.x"
PYTHON_ARCH: "64"
NP_BUILD_DEP: "1.14.5"
NP_TEST_DEP: "1.14.5"
- PYTHON: "C:\\Python37"
PYTHON_VERSION: "3.7.1"
PYTHON_ARCH: "32"
NP_BUILD_DEP: "1.14.5"
NP_TEST_DEP: "1.14.5"
- PYTHON: "C:\\Python37-x64"
PYTHON_VERSION: "3.7.1"
PYTHON_ARCH: "64"
NP_BUILD_DEP: "1.14.5"
NP_TEST_DEP: "1.14.5"
- PYTHON: "C:\\Python38"
PYTHON_VERSION: "3.8.0"
PYTHON_ARCH: "32"
NP_BUILD_DEP: "1.18.0"
NP_TEST_DEP: "1.18.0"
- PYTHON: "C:\\Python38-x64"
PYTHON_VERSION: "3.8.0"
PYTHON_ARCH: "64"
NP_BUILD_DEP: "1.18.0"
NP_TEST_DEP: "1.18.0"
install:
- cmd: echo "Using cmd"
# Prepend newly installed Python to the PATH of this build (this cannot be
# done from inside the powershell script as it would require to restart
# the parent CMD process).
- SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%
# Fix MSVC builds for 64-bit Python
# See
# http://stackoverflow.com/questions/32091593/cannot-install-windows-sdk-7-1-on-windows-10
- 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"
# Check that we have the expected version and architecture for Python
- python --version
- python -c "import struct; print(struct.calcsize('P') * 8)"
- python -m pip install --upgrade pip
# Pin wheel to 0.26 to avoid Windows ABI tag for built wheel
- pip install wheel==0.26
- git submodule update --init
build_script:
# Build and install the wheel
- pip install numpy==%NP_BUILD_DEP%
- cd numexpr
- git checkout %BUILD_COMMIT%
- python setup.py bdist_wheel
- cd dist
- pip install --pre --no-index -f . numexpr
- cd ..
test_script:
# Run some tests
- pip install nose
- pip install numpy==%NP_TEST_DEP%
- mkdir tmp_for_tests
- cd tmp_for_tests
- nosetests numexpr
- cd ..
after_test:
# If tests are successful, create binary packages for the project.
- dir dist
artifacts:
# Archive the generated packages in the ci.appveyor.com build report.
- path: dist\*
on_success:
# Upload the generated wheel package to Rackspace
# On Windows, Apache Libcloud cannot find a standard CA cert bundle so we
# disable the ssl checks.
- pip install wheelhouse-uploader
- python -m wheelhouse_uploader upload --no-ssl-check --local-folder=dist
--no-update-index wheels