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 wheels for Linux #685

Closed
wants to merge 7 commits into from
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
30 changes: 22 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: python
sudo: false

python:
- "2.7"
- "3.4"
Expand All @@ -8,14 +8,28 @@ python:

addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
- unixodbc-dev
- unixodbc-dev

install:
script:
- python setup.py install

script: true
jobs:
include:
- stage: wheel
env:
- CIBW_BEFORE_BUILD="yum -y install unixODBC-devel"
# set TWINE_PASSWORD in Travis preferences
# https://packaging.python.org/tutorials/packaging-projects/#uploading-the-distribution-archives
- TWINE_NON_INTERACTIVE=true
- TWINE_USERNAME=__token__
install: pip install twine cibuildwheel
script:
- python -m pip install twine cibuildwheel
- cibuildwheel --output-dir wheelhouse
deploy:
provider: script
script: python -m twine upload --skip-existing wheelhouse/*.whl
on:
tags: true