This commit is contained in:
jerger 2022-02-24 16:06:56 +01:00
parent a37bb67520
commit 30cca781ce

View file

@ -4,7 +4,6 @@ before_script:
- python --version
- python -m pip install --upgrade pip
- pip install -r requirements.txt
- pip install -r dev_requirements.txt
stages:
- lint
@ -14,30 +13,31 @@ flake8:
stage: lint
allow_failure: true
script:
- flake8 --max-line-length=120 --count --select=E9,F63,F7,F82 --show-source --statistics src/python/ddadevops/*.py
- flake8 --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics src/python/ddadevops/*.py
- pip install -r dev_requirements.txt
- flake8 --max-line-length=120 --count --select=E9,F63,F7,F82 --show-source --statistics src/main/python/ddadevops/*.py
- flake8 --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics src/main/python/ddadevops/*.py
mypy:
stage: lint
allow_failure: true
script:
- python -m mypy src/python/ddadevops/*.py
- python -m mypy src/python/ddadevops/*.py
- pip install -r dev_requirements.txt
- python -m mypy src/main/python/ddadevops/*.py
pylint:
stage: lint
allow_failure: true
script:
- pylint -d C0301 src/python/ddadevops/*.py
- pip install -r dev_requirements.txt
- pylint -d C0301 src/main/python/ddadevops/*.py
pypi-dev:
stage: upload
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- if: '$CI_COMMIT_TAG !~ /^release-.*$/'
- if: '$CI_COMMIT_BRANCH == "main" && $CI_COMMIT_TAG !~ /^release-.*$/'
script:
- pip install -r requirements.txt
- pyb publish upload
pypi-stable: