Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Linux wheels on Travis with cibuildwheel #668

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
language: python
sudo: false

matrix:
include:
- sudo: required
services:
- docker
env: PIP=pip
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The matrix block is not needed. $PIP usage below should be replaced with python -m pip install cibuildwheel twine to prevent Travis failure.


python:
- "2.7"
- "3.4"
Expand All @@ -15,7 +22,17 @@ addons:
- g++-4.8
- unixodbc-dev

env:
global:
- CIBW_BEFORE_BUILD="yum -y install unixODBC-devel"

install:
- python setup.py install

script: true
script:
- $PIP install cibuildwheel==1.1.0
- cibuildwheel --output-dir wheelhouse
- python -m pip install twine

after_success:
- python -m twine upload --skip-existing wheelhouse/*.whl