Skip to content

Commit

Permalink
travis: fix deploy
Browse files Browse the repository at this point in the history
Removes deeply broken dpl travis module and adopts
pure python twine upload.

Signed-off-by: Sorin Sbarnea <[email protected]>
  • Loading branch information
ssbarnea committed Jul 10, 2018
1 parent 5bd01e4 commit caf5944
Showing 1 changed file with 9 additions and 21 deletions.
30 changes: 9 additions & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ cache:
os:
- linux
stages:
- lint
- docs
- test
- phase1
- phase2
- deploy
before_install:
# begin: workaround to enable support for py37:
Expand All @@ -26,14 +25,16 @@ before_install:
# ^ end workaround
- nvm install $TRAVIS_NODE_VERSION
# end
- 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
- 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
notifications:
email:
- [email protected]
jobs:
include:
- stage: phase1
script:
# package building added here purely to fail-fast if is broken
- python setup.py sdist bdist_wheel
- python -m tox
- npm install && npm run spell
env: TOXENV=lint
Expand Down Expand Up @@ -82,29 +83,16 @@ jobs:
# end
- stage: deploy
script:
- export PACKAGE_NAME=$(python setup.py --name)
- export PACKAGE_VERSION=$(python setup.py --version)
- python setup.py sdist bdist_wheel
- python -m twine upload dist/*
if: tag IS present
deploy:
- provider: pypi
user: pycontribs
distributions: sdist bdist_wheel
skip_existing: true
skip_cleanup: true
# https://github.com/travis-ci/dpl/pull/834
edge:
source: ssbarnea/dpl
branch: master
on:
tags: true
branch: master
repo: pycontribs/jira
- provider: releases
api_key:
secure: YJGigSNYOzMJqs23gIZLFxiVYRqHdV4WsTZmRVosishD2QIaDlTwJma7k6Y5eMPVNdLpqo7Tq6bt7xkJAz/dcr3UO35T/Y0tiRFFW3sd6IOB6ELwSwPhSeHoyUMvZtKyDTl+9tOfeZusFZuCc+mBLQcG+S2NzEaeyrQ6n5hTT/8FGBP91FOq9l5q2gYbmACZ9MisDIjZkTHNYih36ComnZ9QHC91jHKcSuHmOfWWX3GneDVFtuPhF2vjaLQrz8IFtWGW5Sfe35yDYlVQRH+NFxzSJ2zDuT5j8cRgwXjGout78umtMsqAn+zv1Ws/MUNKMTEtONsACndMpGCkuB6Nifl/KcGj5kD7V4PO/gE0ecr830qAwJxSVB7xk6rl797nMxGbr4w2DWQ/iDdHDTlPAEzbLBMLrMRgPxzKPgg5CNxxjT1cHoBNcFPp6gaf017w4XOVUgp/zxXeCg7iGiNJj7z2t8/m9eYVNNlNRPcodN6BjSjPqkYxC3ZMVCI5KsRXbHmR0zOWbPdcRjrY/IgbiTqX09sHotHw5GThP6YTMbienC4h93cdx6MEfX656W6XMOxpC+MjWtYuV8QlfMEJFlstOnA86MVLcmbl+4A6FHuvlQMdDtP9KsKdKIf/4juGhNEFir32P1rUe8J1abmjwXmDkHVbli0SDqaFtB5gyCc=
file_glob: true
file:
- dist/$PACKAGE_NAME-$PACKAGE_VERSION.tar.gz
- dist/$PACKAGE_NAME-$PACKAGE_VERSION-py2.py3-none-any.whl
- dist/*
- ChangeLog
skip_cleanup: true
on:
Expand Down

0 comments on commit caf5944

Please sign in to comment.