Skip to content

Commit

Permalink
Merge pull request #33 from aflc/fix-deploy
Browse files Browse the repository at this point in the history
Fix travis CI process
  • Loading branch information
roy-ht authored Mar 10, 2019
2 parents 89f7f6e + 96037b1 commit 6d72ceb
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
sudo: required
services: [docker]
env:
global:
- CIBW_TEST_REQUIRES=nose
Expand All @@ -8,15 +6,27 @@ env:
matrix:
include:
- os: linux
dist: xenial
language: python
python: 3.6
env:
- INSTALL_SOURCE=true
- os: osx
language: ruby
sudo: required
language: generic

script:
- pip install cibuildwheel==0.9.4
- |
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
sudo pip3 install cibuildwheel==0.10.1 twine
else
pip3 install cibuildwheel==0.10.1 twine
fi
- cibuildwheel --output-dir wheelhouse
- |
if [[ $TRAVIS_TAG ]]; then
python -m pip install twine
python -m twine upload wheelhouse/*.whl
if [[ -n $INSTALL_SOURCE ]]; then
python3 setup.py sdist
fi
twine upload wheelhouse/*.whl
fi

0 comments on commit 6d72ceb

Please sign in to comment.