Skip to content

Commit caf5944

Browse files
committed
travis: fix deploy
Removes deeply broken dpl travis module and adopts pure python twine upload. Signed-off-by: Sorin Sbarnea <[email protected]>
1 parent 5bd01e4 commit caf5944

File tree

1 file changed

+9
-21
lines changed

1 file changed

+9
-21
lines changed

.travis.yml

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ cache:
88
os:
99
- linux
1010
stages:
11-
- lint
12-
- docs
13-
- test
11+
- phase1
12+
- phase2
1413
- deploy
1514
before_install:
1615
# begin: workaround to enable support for py37:
@@ -26,14 +25,16 @@ before_install:
2625
# ^ end workaround
2726
- nvm install $TRAVIS_NODE_VERSION
2827
# end
29-
- which tox >/dev/null || if [ -z ${VIRTUAL_ENV+x} ]; then python -m pip install --user tox tox-pyenv ; else python -m pip install tox tox-pyenv; fi
28+
- which tox >/dev/null || if [ -z ${VIRTUAL_ENV+x} ]; then python -m pip install --user tox tox-pyenv ; else python -m pip install tox tox-pyenv twine; fi
3029
notifications:
3130
email:
3231
3332
jobs:
3433
include:
3534
- stage: phase1
3635
script:
36+
# package building added here purely to fail-fast if is broken
37+
- python setup.py sdist bdist_wheel
3738
- python -m tox
3839
- npm install && npm run spell
3940
env: TOXENV=lint
@@ -82,29 +83,16 @@ jobs:
8283
# end
8384
- stage: deploy
8485
script:
85-
- export PACKAGE_NAME=$(python setup.py --name)
86-
- export PACKAGE_VERSION=$(python setup.py --version)
8786
- python setup.py sdist bdist_wheel
87+
- python -m twine upload dist/*
88+
if: tag IS present
8889
deploy:
89-
- provider: pypi
90-
user: pycontribs
91-
distributions: sdist bdist_wheel
92-
skip_existing: true
93-
skip_cleanup: true
94-
# https://github.com/travis-ci/dpl/pull/834
95-
edge:
96-
source: ssbarnea/dpl
97-
branch: master
98-
on:
99-
tags: true
100-
branch: master
101-
repo: pycontribs/jira
10290
- provider: releases
10391
api_key:
10492
secure: YJGigSNYOzMJqs23gIZLFxiVYRqHdV4WsTZmRVosishD2QIaDlTwJma7k6Y5eMPVNdLpqo7Tq6bt7xkJAz/dcr3UO35T/Y0tiRFFW3sd6IOB6ELwSwPhSeHoyUMvZtKyDTl+9tOfeZusFZuCc+mBLQcG+S2NzEaeyrQ6n5hTT/8FGBP91FOq9l5q2gYbmACZ9MisDIjZkTHNYih36ComnZ9QHC91jHKcSuHmOfWWX3GneDVFtuPhF2vjaLQrz8IFtWGW5Sfe35yDYlVQRH+NFxzSJ2zDuT5j8cRgwXjGout78umtMsqAn+zv1Ws/MUNKMTEtONsACndMpGCkuB6Nifl/KcGj5kD7V4PO/gE0ecr830qAwJxSVB7xk6rl797nMxGbr4w2DWQ/iDdHDTlPAEzbLBMLrMRgPxzKPgg5CNxxjT1cHoBNcFPp6gaf017w4XOVUgp/zxXeCg7iGiNJj7z2t8/m9eYVNNlNRPcodN6BjSjPqkYxC3ZMVCI5KsRXbHmR0zOWbPdcRjrY/IgbiTqX09sHotHw5GThP6YTMbienC4h93cdx6MEfX656W6XMOxpC+MjWtYuV8QlfMEJFlstOnA86MVLcmbl+4A6FHuvlQMdDtP9KsKdKIf/4juGhNEFir32P1rUe8J1abmjwXmDkHVbli0SDqaFtB5gyCc=
93+
file_glob: true
10594
file:
106-
- dist/$PACKAGE_NAME-$PACKAGE_VERSION.tar.gz
107-
- dist/$PACKAGE_NAME-$PACKAGE_VERSION-py2.py3-none-any.whl
95+
- dist/*
10896
- ChangeLog
10997
skip_cleanup: true
11098
on:

0 commit comments

Comments
 (0)