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: 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:

View File

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

View File

@@ -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,