File tree Expand file tree Collapse file tree 1 file changed +36
-14
lines changed
Expand file tree Collapse file tree 1 file changed +36
-14
lines changed Original file line number Diff line number Diff line change 1+ stages :
2+ - test
3+ - name : deploy
4+ if : tag IS present
5+
16language : python
2- python :
3- - " 2.7"
4- - " 3.4"
5- - " 3.5"
6- - " 3.6"
7- - " 3.7"
8- - " 3.7-dev"
9- - " 3.8-dev"
107
118install :
129 - pip install coverage
13- - pip install pypack
14-
1510script :
16- # run tests with coverage
11+ # run tests and report coverage
1712 - coverage run tests/run_tests.py
18- - coverage report -m
19- # test distribution packaging
20- - python -m pypack patch_ng.py
13+ - coverage report -m --omit=tests/run_tests.py
14+
15+ jobs :
16+ include :
17+ - stage : test
18+ python : 2.7
19+ - python : 3.4
20+ - python : 3.5
21+ - python : 3.6
22+ - python : 3.7
23+ - python : 3.8
24+ - stage : deploy
25+ install :
26+ script :
27+ - " PACKAGE_VERSION=$(cat patch_ng.py | grep __version__ | head -1 | awk -F= '{ print $2 }' | sed 's/[ \" ,]//g')"
28+ - echo "Deploying library version '$PACKAGE_VERSION'"
29+ - echo "Tagged in repo as '$TRAVIS_TAG'"
30+ - |
31+ if [ "$PACKAGE_VERSION" != "$TRAVIS_TAG" ]; then
32+ echo "Library version and tag name mismatch!"
33+ travis_terminate 1
34+ fi
35+
36+ deploy :
37+ provider : pypi
38+ user : " __token__"
39+ password : " pypi-we-need-a-token"
40+ server : https://test.pypi.org/legacy/
41+ on :
42+ tags : true
You can’t perform that action at this time.
0 commit comments