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 ae3c459
Show file tree
Hide file tree
Showing 3 changed files with 14 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: $TRAVIS_BUILD_DIR/support/deploy.sh
skip_cleanup: true
on:
tags: true
12 changes: 12 additions & 0 deletions support/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

cd $TRAVIS_BUILD_DIR
pip install -U wheel
pip install twine

if [ "$TRAVIS_OS_NAME" = "linux" ] && [ -d "$TRAVIS_BUILD_DIR/dist" ]; 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
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 ae3c459

Please sign in to comment.