Skip to content

Commit

Permalink
Fix automatic deployment on Travis
Browse files Browse the repository at this point in the history
[skip appveyor]
  • Loading branch information
dean0x7d committed Nov 11, 2016
1 parent 7153c89 commit 0ba0607
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
14 changes: 1 addition & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,9 @@ install:
- ccache -s
script:
- make tests
before_deploy:
- |
pip install -U wheel
pip install twine
deploy:
provider: script
script:
- |
cd $TRAVIS_BUILD_DIR
if [ "$TRAVIS_OS_NAME" = "linux" ] && [ ${SDIST+x} ]; then
twine upload -u $PYPI_USER -p $PYPI_PASS --skip-existing dist/*.tar.gz
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
PB_NATIVE_SIMD=OFF python setup.py bdist_wheel --plat-name macosx-10.9-x86_64
twine upload -u $PYPI_USER -p $PYPI_PASS --skip-existing dist/*.whl
fi
script: support/pypi_deploy.sh
skip_cleanup: true
on:
tags: true
11 changes: 11 additions & 0 deletions support/pypi_deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env sh

pip install -U wheel
pip install twine

if [ "$TRAVIS_OS_NAME" = "linux" ] && [ ${SDIST+x} ]; then
twine upload -u $PYPI_USER -p $PYPI_PASS --skip-existing $TRAVIS_BUILD_DIR/dist/*.tar.gz
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
PB_NATIVE_SIMD=OFF python setup.py bdist_wheel --plat-name macosx-10.9-x86_64
twine upload -u $PYPI_USER -p $PYPI_PASS --skip-existing $TRAVIS_BUILD_DIR/dist/*.whl
fi
2 changes: 1 addition & 1 deletion support/readme.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Support scripts for Read the Docs.
Support scripts for Read the Docs and PyPI deployment.

0 comments on commit 0ba0607

Please sign in to comment.