Skip to content

Commit

Permalink
muck about with deployment some more
Browse files Browse the repository at this point in the history
  • Loading branch information
nihlaeth committed Feb 26, 2017
1 parent bb66197 commit 718ac6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ after_success:
- which python
deploy:
- provider: script
script: HOME=$TRAVIS_BUILD_DIR TWINE_REPOSITORY=testpypi sh ./scripts/pypi_deploy.sh
script: "HOME=$TRAVIS_BUILD_DIR TWINE_REPOSITORY=testpypi sh ./scripts/pypi_deploy.sh"
on:
condition: $TRAVIS_PYTHON_VERSION = "3.6"
skip_cleanup: true
- provider: script
script: HOME=$TRAVIS_BUILD_DIR TWINE_REPOSITORY=pypi sh ./scripts/pypi_deploy.sh
script: "HOME=$TRAVIS_BUILD_DIR TWINE_REPOSITORY=pypi sh ./scripts/pypi_deploy.sh"
on:
tags: true
condition: $TRAVIS_PYTHON_VERSION = "3.6"
Expand Down
8 changes: 4 additions & 4 deletions scripts/pypi_deploy.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash
echo 1
set -ev
echo "check #1"
set +x # double-check that x is unset
echo 2
echo "check #2"
$(which python) setup.py sdist bdist_wheel --universal
echo 3
echo "check #3"
cat > ~/.pypirc << _EOF_
[distutils]
index-servers=
Expand All @@ -21,7 +21,7 @@ repository = https://upload.pypi.org/legacy/
username = ${TWINE_USERNAME}
password = ${TWINE_PASSWORD}
_EOF_
echo 4
echo "check #4"
$(which twine) upload -r ${TWINE_REPOSITORY} dist/*

# reset ownership so that we can stop using sudo
Expand Down

0 comments on commit 718ac6e

Please sign in to comment.