8000 Update AppVeyor build (#267) · didlie/msgpack-python@45c1a53 · GitHub
[go: up one dir, main page]

Skip to content

Commit 45c1a53

Browse files
authored
Update AppVeyor build (msgpack#267)
1 parent 7c22d98 commit 45c1a53

File tree

2 files changed

+21
-18
lines changed

2 files changed

+21
-18
lines changed

appveyor.yml

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
11
environment:
2-
32
matrix:
4-
53
# For Python versions available on Appveyor, see
64
# http://www.appveyor.com/docs/installed-software#python
7-
# The list here is complete (excluding Python 2.6, which
8-
# isn't covered by this document) at the time of writing.
9-
10-
- PYTHON: "C:\\Python27"
11-
- PYTHON: "C:\\Python27-x64"
12-
- PYTHON: "C:\\Python35"
13-
- PYTHON: "C:\\Python35-x64"
145
- PYTHON: "C:\\Python36"
15-
- PYTHON: "C:\\Python36-x64"
166

177
install:
188
# We need wheel installed to build wheels
19-
- "%PYTHON%\\python.exe -m pip install -U pip wheel pytest cython"
9+
- "%PYTHON%\\python.exe -m pip install -U cython"
2010
- "%PYTHON%\\Scripts\\cython --cplus msgpack/_packer.pyx msgpack/_unpacker.pyx"
2111

2212
build: off
@@ -26,20 +16,26 @@ test_script:
2616
# Note that you must use the environment variable %PYTHON% to refer to
2717
# the interpreter you're using - Appveyor does not do anything special
2818
# to put the Python version you want to use on PATH.
29-
- "%PYTHON%\\python.exe setup.py build_ext -i"
30-
- "%PYTHON%\\python.exe setup.py install"
31-
- "%PYTHON%\\python.exe -c \"import sys; print(hex(sys.maxsize))\""
32-
- "%PYTHON%\\python.exe -c \"from msgpack import _packer, _unpacker\""
33-
- "%PYTHON%\\Scripts\\py.test test"
34-
- "%PYTHON%\\python.exe setup.py bdist_wheel"
19+
- set PYTHON="C:\\Python27"
20+
- ci\\runtests.bat
21+
- set PYTHON="C:\\Python27-x64"
22+
- ci\\runtests.bat
23+
- set PYTHON="C:\\Python35"
24+
- ci\\runtests.bat
25+
- set PYTHON="C:\\Python35-x64"
26+
- ci\\runtests.bat
27+
- set PYTHON="C:\\Python36"
28+
- ci\\runtests.bat
29+
- set PYTHON="C:\\Python36-x64"
30+
- ci\\runtests.bat
3531

3632
after_test:
3733
# This step builds your wheels.
3834
# Again, you need to use %PYTHON% to get the correct interpreter
3935

4036
artifacts:
4137
# bdist_wheel puts your built wheel in the dist directory
42-
- path: dist\*
38+
- path: dist\*.whl
4339

4440
#on_success:
4541
# You can use this step to upload your artifacts to a public website.

ci/runtests.bat

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
%PYTHON%\python.exe -m pip install -U pip wheel pytest
2+
%PYTHON%\python.exe setup.py build_ext -i
3+
%PYTHON%\python.exe setup.py install
4+
%PYTHON%\python.exe -c "import sys; print(hex(sys.maxsize))"
5+
%PYTHON%\python.exe -c "from msgpack import _packer, _unpacker"
6+
%PYTHON%\python.exe -m pytest -v test
7+
%PYTHON%\python.exe setup.py bdist_wheel

0 commit comments

Comments
 (0)
0