Skip to content

Commit 10fb6a8

Browse files
committed
Fix CI Scripts
1 parent 0a7e7f0 commit 10fb6a8

File tree

4 files changed

+14
-26
lines changed

4 files changed

+14
-26
lines changed

appveyor.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,17 @@ version: '{branch}-{build}'
22
cache:
33
- '%LOCALAPPDATA%\pip\Cache'
44
environment:
5-
PYTHON: C:\Python35
65
password:
76
secure: pp1j5lAB9NN8ZDasgY+oxoGrNw0+4gGzbNZmHVwJkCzUyrNBP5ZIuCrwjmx4q6ifg7RMiE3bVt9MljFCJh3XpsvVOAcx+AGKsHSjtXd40HM=
8-
cache:
9-
- '%LOCALAPPDATA%\pip\Cache'
107
init:
118
- ps: "ls C:/Python*"
129

1310
install:
1411
- choco install python.pypy > pypy-inst.log 2>&1 || (type pypy-inst.log & exit /b 1)
15-
- "SET PATH=C:\tools\pypy\pypy;%PYTHON%;%PYTHON%\\scripts;%PATH%"
12+
- SET PATH=C:\tools\pypy\pypy;C:\Python35;C:\Python35\scripts;%PATH%
1613
- pip install tox
1714
- 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"
18-
- "pip install -r dev-requirements.txt"
15+
- pip install -r dev-requirements.txt
1916

2017
build: off
2118

ci/build-wheels.sh

+3-14
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,9 @@ set -e -x
33

44
cd /io
55

6-
# tests
7-
for PYBIN in /opt/python/*/bin/; do
8-
${PYBIN}/pip install -r /io/dev-requirements.txt
9-
${PYBIN}/python setup.py test
10-
pwd
11-
ls
12-
rm *.so
13-
done
14-
15-
rm bencoder.c
16-
176
# compile wheels
187
for PYBIN in /opt/python/*/bin/; do
19-
${PYBIN}/pip install -r /io/dev-requirements.txt
20-
${PYBIN}/cython bencoder.pyx
8+
${PYBIN}/pip install cython
219
${PYBIN}/pip wheel /io/ -w /tmp/wheelhouse/
2210
done
2311

@@ -31,5 +19,6 @@ cp /tmp/wheelhouse/ordereddict* /io/wheelhouse
3119
# Install packages and test again
3220
for PYBIN in /opt/python/*/bin/; do
3321
${PYBIN}/pip install bencoder.pyx --no-index -f /io/wheelhouse
34-
(cd $/io; ${PYBIN}/py.test)
22+
${PYBIN}/pip install pytest
23+
(cd /io; ${PYBIN}/py.test -c pytest-nocov.ini)
3524
done

setup.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@
4444
try:
4545
from wheel.bdist_wheel import bdist_wheel
4646

47-
REPLACE = (
48-
'macosx_10_6_intel.'
49-
'macosx_10_9_intel.'
50-
'macosx_10_9_x86_64.'
51-
'macosx_10_10_intel.'
52-
'macosx_10_10_x86_64'
53-
)
47+
REPLACE = '.'.join([
48+
'macosx_10_6_intel',
49+
'macosx_10_9_intel',
50+
'macosx_10_9_x86_64',
51+
'macosx_10_10_intel',
52+
'macosx_10_10_x86_64',
53+
])
5454

5555
class _bdist_wheel(bdist_wheel):
5656
def get_tag(self):

tox.ini

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ commands = python setup.py test
66
skip_install = True
77
deps =
88
cython
9+
pytest
10+
pytest-cov
911

1012
[testenv:pypy]
1113
skip_install = False

0 commit comments

Comments
 (0)