New ci flow

This commit is contained in:
Eddy Hintze 2020-01-19 10:00:40 -05:00
parent e4ace4528c
commit 4c85441f39
3 changed files with 10 additions and 8 deletions

View File

@ -3,18 +3,20 @@ image: python:3
stages:
- test
- release
- tag
- package
flake8:
stage: test
except:
- tags
script:
- pip install tox
- tox -e flake8
release-package:
stage: release
pypi-package:
stage: package
only:
- master
- tags
script:
- pip install twine
- rm -f dist/*
@ -28,7 +30,7 @@ release-package:
git remote set-url origin "https://gitlab-ci-token:${CI_TAG_UPLOAD_TOKEN}@${url_host}"
tag:
stage: tag
stage: release
only:
- master
script:

View File

@ -1 +1 @@
__version__ = '0.0.2'
__version__ = '0.0.3'

View File

@ -20,8 +20,8 @@ def cli():
# Generate cookie
###
parser_gencookie = subparsers.add_parser(
'gen-cookie',
help="Generate cookie used to access your library",
'gen-cookies',
help="Generate cookies used to access your library",
)
parser_gencookie.add_argument(
'-c', '--cookie-file', type=str,