File tree Expand file tree Collapse file tree 1 file changed +9
-21
lines changed Expand file tree Collapse file tree 1 file changed +9
-21
lines changed Original file line number Diff line number Diff line change 8
8
os :
9
9
- linux
10
10
stages :
11
- - lint
12
- - docs
13
- - test
11
+ - phase1
12
+ - phase2
14
13
- deploy
15
14
before_install :
16
15
# begin: workaround to enable support for py37:
@@ -26,14 +25,16 @@ before_install:
26
25
# ^ end workaround
27
26
- nvm install $TRAVIS_NODE_VERSION
28
27
# 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
30
29
notifications :
31
30
email :
32
31
33
32
jobs :
34
33
include :
35
34
- stage : phase1
36
35
script :
36
+ # package building added here purely to fail-fast if is broken
37
+ - python setup.py sdist bdist_wheel
37
38
- python -m tox
38
39
- npm install && npm run spell
39
40
env : TOXENV=lint
@@ -82,29 +83,16 @@ jobs:
82
83
# end
83
84
- stage : deploy
84
85
script :
85
- - export PACKAGE_NAME=$(python setup.py --name)
86
- - export PACKAGE_VERSION=$(python setup.py --version)
87
86
- python setup.py sdist bdist_wheel
87
+ - python -m twine upload dist/*
88
+ if : tag IS present
88
89
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
102
90
- provider : releases
103
91
api_key :
104
92
secure : YJGigSNYOzMJqs23gIZLFxiVYRqHdV4WsTZmRVosishD2QIaDlTwJma7k6Y5eMPVNdLpqo7Tq6bt7xkJAz/dcr3UO35T/Y0tiRFFW3sd6IOB6ELwSwPhSeHoyUMvZtKyDTl+9tOfeZusFZuCc+mBLQcG+S2NzEaeyrQ6n5hTT/8FGBP91FOq9l5q2gYbmACZ9MisDIjZkTHNYih36ComnZ9QHC91jHKcSuHmOfWWX3GneDVFtuPhF2vjaLQrz8IFtWGW5Sfe35yDYlVQRH+NFxzSJ2zDuT5j8cRgwXjGout78umtMsqAn+zv1Ws/MUNKMTEtONsACndMpGCkuB6Nifl/KcGj5kD7V4PO/gE0ecr830qAwJxSVB7xk6rl797nMxGbr4w2DWQ/iDdHDTlPAEzbLBMLrMRgPxzKPgg5CNxxjT1cHoBNcFPp6gaf017w4XOVUgp/zxXeCg7iGiNJj7z2t8/m9eYVNNlNRPcodN6BjSjPqkYxC3ZMVCI5KsRXbHmR0zOWbPdcRjrY/IgbiTqX09sHotHw5GThP6YTMbienC4h93cdx6MEfX656W6XMOxpC+MjWtYuV8QlfMEJFlstOnA86MVLcmbl+4A6FHuvlQMdDtP9KsKdKIf/4juGhNEFir32P1rUe8J1abmjwXmDkHVbli0SDqaFtB5gyCc=
93
+ file_glob : true
105
94
file :
106
- - dist/$PACKAGE_NAME-$PACKAGE_VERSION.tar.gz
107
- - dist/$PACKAGE_NAME-$PACKAGE_VERSION-py2.py3-none-any.whl
95
+ - dist/*
108
96
- ChangeLog
109
97
skip_cleanup : true
110
98
on :
You can’t perform that action at this time.
0 commit comments