You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dda-devops-build/.gitlab-ci.yml

62 lines
1.6 KiB
YAML

image: "python:3.10"
2 years ago
before_script:
- python --version
2 years ago
- python -m pip install --upgrade pip
2 years ago
- pip install -r requirements.txt
2 years ago
stages:
1 year ago
- lint&test
2 years ago
- upload
- image
2 years ago
flake8:
1 year ago
stage: lint&test
2 years ago
script:
2 years ago
- pip install -r dev_requirements.txt
- flake8 --max-line-length=120 --count --select=E9,F63,F7,F82 --show-source --statistics src/main/python/ddadevops/
- flake8 --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics src/main/python/ddadevops/
2 years ago
mypy:
1 year ago
stage: lint&test
2 years ago
script:
2 years ago
- pip install -r dev_requirements.txt
- python -m mypy src/main/python/ddadevops/ --ignore-missing-imports
2 years ago
pylint:
1 year ago
stage: lint&test
2 years ago
script:
2 years ago
- pip install -r dev_requirements.txt
- pylint -d W0511,R0903,C0301,W0614,C0114,C0115,C0116,similarities,W1203,W0719,W0702,W0702,R0913,R0902,R0914,R1732 src/main/python/ddadevops/
1 year ago
pytest:
stage: lint&test
script:
- pip install -r dev_requirements.txt
- pytest
2 years ago
pypi-stable:
stage: upload
rules:
2 years ago
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- if: '$CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+$/'
2 years ago
script:
2 years ago
- pyb -P version=$CI_COMMIT_TAG publish upload
clojure-image-test-publish:
image: domaindrivenarchitecture/devops-build:latest
stage: image
rules:
- if: '$CI_COMMIT_TAG != null'
script:
- cd infrastructure/clojure && pyb image test publish
devops-build-image-test-publish:
image: domaindrivenarchitecture/devops-build:latest
stage: image
rules:
- if: '$CI_COMMIT_TAG != null'
script:
- cd infrastructure/devops-build && pyb image test publish