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

Commit 7e71346

Browse files
Denys Smirnovdennwc
authored andcommitted
ci: upload on success, not on install
Signed-off-by: Denys Smirnov <[email protected]>
1 parent 1d3dbbc commit 7e71346

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ install:
2222
- python3 setup.py --getdeps --log
2323
- pip3 install . --upgrade
2424
- cd bblfsh && python3 -m unittest discover && cd ..
25+
script:
26+
- python3 setup.py build_ext -i
27+
after_success:
2528
- if [[ -z "$TRAVIS_TAG" ]]; then exit 0; fi
2629
- if [[ $TRAVIS_PYTHON_VERSION != '3.6' ]]; then exit 0; fi # disable double uploads to pypi
2730
- echo "[distutils]" > $HOME/.pypirc
@@ -30,6 +33,4 @@ install:
3033
- echo "[pypi]" >> $HOME/.pypirc
3134
- echo "username=$PYPI_USER" >> $HOME/.pypirc
3235
- echo "password=$PYPI_PASS" >> $HOME/.pypirc
33-
- python setup.py sdist upload
34-
script:
35-
- python3 setup.py build_ext -i
36+
- python setup.py sdist upload

0 commit comments

Comments
 (0)