diff options
Diffstat (limited to 'deploy_travis.sh')
-rw-r--r-- | deploy_travis.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/deploy_travis.sh b/deploy_travis.sh new file mode 100644 index 00000000..c6488a59 --- /dev/null +++ b/deploy_travis.sh @@ -0,0 +1,16 @@ +# Define custom utilities for deploying on travis + +function deploy { + # Config pypirc + echo "[distutils]" > ~/.pypirc + echo "index-servers=" >> ~/.pypirc + echo " test" >> ~/.pypirc + echo "" >> ~/.pypirc + echo "[test]" >> ~/.pypirc + echo "repository = https://test.pypi.org/legacy/" >> ~/.pypirc + echo "username = $WHEELHOUSE_UPLOADER_USERNAME" >> ~/.pypirc + echo "password = $WHEELHOUSE_UPLOADER_SECRET" >> ~/.pypirc + + # Upload + twine upload -r test $TRAVIS_BUILD_DIR/wheelhouse/* +} |