Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Commit

Permalink
ci: upload on success, not on install
Browse files Browse the repository at this point in the history
Signed-off-by: Denys Smirnov <[email protected]>
  • Loading branch information
Denys Smirnov authored and dennwc committed Apr 19, 2019
1 parent 1d3dbbc commit 7e71346
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ install:
- python3 setup.py --getdeps --log
- pip3 install . --upgrade
- cd bblfsh && python3 -m unittest discover && cd ..
script:
- python3 setup.py build_ext -i
after_success:
- if [[ -z "$TRAVIS_TAG" ]]; then exit 0; fi
- if [[ $TRAVIS_PYTHON_VERSION != '3.6' ]]; then exit 0; fi # disable double uploads to pypi
- echo "[distutils]" > $HOME/.pypirc
Expand All @@ -30,6 +33,4 @@ install:
- echo "[pypi]" >> $HOME/.pypirc
- echo "username=$PYPI_USER" >> $HOME/.pypirc
- echo "password=$PYPI_PASS" >> $HOME/.pypirc
- python setup.py sdist upload
script:
- python3 setup.py build_ext -i
- python setup.py sdist upload

0 comments on commit 7e71346

Please sign in to comment.