Skip to content

Commit

Permalink
added jobs to build binary wheels on linux and OSX
Browse files Browse the repository at this point in the history
Additionally, added an example setup for pushing the wheels to S3
  • Loading branch information
beniwohli committed Aug 31, 2017
1 parent a4aeb4c commit 69db1cb
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,36 @@ script:
after_script:
- coverage combine
- coveralls

jobs:
include:
- stage: Build
python: 3.4
sudo: required
services:
- docker
script: pip install cibuildwheel==0.4.1 && mkdir -p wheelhouse/${TRAVIS_TAG} && cibuildwheel --output-dir wheelhouse/${TRAVIS_TAG}
env:
- CIBW_TEST_REQUIRES=pytest
- CIBW_TEST_COMMAND="py.test {project}/tests"
after_script:
- os: osx
language: c # Travis doesn't support Python builds on OSX, so let's lie a bit
script: pip install cibuildwheel==0.4.1 && mkdir -p wheelhouse/${TRAVIS_TAG} && cibuildwheel --output-dir wheelhouse/${TRAVIS_TAG}
env:
- CIBW_TEST_REQUIRES=pytest
- CIBW_TEST_COMMAND="py.test {project}/tests"
after_script:

deploy:
provider: s3
access_key_id: ""
secret_access_key:
secure: ""
bucket: wrapt-wheels
skip_cleanup: true
local_dir: wheelhouse
acl: public_read
on:
repo: GrahamDumpleton/wrapt
tags: true

0 comments on commit 69db1cb

Please sign in to comment.