Skip to content

Commit 99e4bde

Browse files
committed
Build manylinux wheels on Travis
1 parent b902fd2 commit 99e4bde

7 files changed

+33
-9
lines changed

.travis.yml

+18-8
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,27 @@ env:
66
- VERSION=3.4
77
- VERSION=3.5
88

9+
matrix:
10+
include:
11+
- sudo: required
12+
os: linux
13+
services:
14+
- docker
15+
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
16+
- sudo: required
17+
os: linux
18+
services:
19+
- docker
20+
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_i686
21+
PRE_CMD=linux32
22+
923
install:
10-
- git clone https://github.com/MacPython/terryfy.git
11-
- source terryfy/library_installers.sh
12-
- clean_builds
13-
- get_python_environment macpython $VERSION venv
14-
- pip install --upgrade pip wheel
15-
- pip install -r dev-requirements.txt
24+
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then source ci/travis_osx_install.sh; fi
25+
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then source ci/travis_linux_install.sh; fi
1626

1727
script:
18-
- python setup.py test
19-
- pip wheel . -w wheelhouse/
28+
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then source ci/travis_osx_script.sh; fi
29+
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then source ci/travis_linux_script.sh; fi
2030

2131
after_success:
2232
- ls wheelhouse/

README.rst

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ A fast bencode implementation in Cython supports both Python2 & Python3 .
99
:target: https://ci.appveyor.com/project/whtsky/bencoder.pyx
1010
.. image:: https://semaphoreci.com/api/v1/whtsky/bencoder-pyx/branches/master/shields_badge.svg
1111
:target: https://semaphoreci.com/whtsky/bencoder-pyx
12+
13+
14+
.. image:: https://img.shields.io/travis/whtsky/bencoder.pyx/master.svg?maxAge=3600&label=wheels
15+
:target: https://travis-ci.org/whtsky/bencoder.pyx
1216
.. image:: https://codecov.io/gh/whtsky/bencoder.pyx/branch/master/graph/badge.svg
1317
:target: https://codecov.io/gh/whtsky/bencoder.pyx
1418

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ test_script:
2020
- tox
2121

2222
on_success:
23-
- tox -c tox-wheels.ini
2423
- pip install codecov
2524
- codecov
25+
- tox -c tox-wheels.ini
2626

2727
deploy_script:
2828
- echo [distutils] > %USERPROFILE%\\.pypirc

ci/travis_linux_install.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docker pull $DOCKER_IMAGE

ci/travis_linux_script.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docker run --rm -v $(pwd):/io $DOCKER_IMAGE $PRE_CMD /io/ci/build-wheels.sh

ci/travis_osx_install.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
git clone https://github.com/MacPython/terryfy.git
2+
source terryfy/library_installers.sh
3+
clean_builds
4+
get_python_environment macpython $VERSION venv
5+
pip install --upgrade pip wheel
6+
pip install -r dev-requirements.txt

ci/travis_osx_script.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
python setup.py test
2+
pip wheel . -w wheelhouse/

0 commit comments

Comments
 (0)