forked from Mirrors/humblebundle-downloader
New ci flow
This commit is contained in:
@@ -3,18 +3,20 @@ image: python:3
|
|||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
- release
|
- release
|
||||||
- tag
|
- package
|
||||||
|
|
||||||
flake8:
|
flake8:
|
||||||
stage: test
|
stage: test
|
||||||
|
except:
|
||||||
|
- tags
|
||||||
script:
|
script:
|
||||||
- pip install tox
|
- pip install tox
|
||||||
- tox -e flake8
|
- tox -e flake8
|
||||||
|
|
||||||
release-package:
|
pypi-package:
|
||||||
stage: release
|
stage: package
|
||||||
only:
|
only:
|
||||||
- master
|
- tags
|
||||||
script:
|
script:
|
||||||
- pip install twine
|
- pip install twine
|
||||||
- rm -f dist/*
|
- rm -f dist/*
|
||||||
@@ -28,7 +30,7 @@ release-package:
|
|||||||
git remote set-url origin "https://gitlab-ci-token:${CI_TAG_UPLOAD_TOKEN}@${url_host}"
|
git remote set-url origin "https://gitlab-ci-token:${CI_TAG_UPLOAD_TOKEN}@${url_host}"
|
||||||
|
|
||||||
tag:
|
tag:
|
||||||
stage: tag
|
stage: release
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
script:
|
script:
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
__version__ = '0.0.2'
|
__version__ = '0.0.3'
|
||||||
|
|||||||
@@ -20,8 +20,8 @@ def cli():
|
|||||||
# Generate cookie
|
# Generate cookie
|
||||||
###
|
###
|
||||||
parser_gencookie = subparsers.add_parser(
|
parser_gencookie = subparsers.add_parser(
|
||||||
'gen-cookie',
|
'gen-cookies',
|
||||||
help="Generate cookie used to access your library",
|
help="Generate cookies used to access your library",
|
||||||
)
|
)
|
||||||
parser_gencookie.add_argument(
|
parser_gencookie.add_argument(
|
||||||
'-c', '--cookie-file', type=str,
|
'-c', '--cookie-file', type=str,
|
||||||
|
|||||||
Reference in New Issue
Block a user