mirror of
https://git.collinwebdesigns.de/oscar.krause/fastapi-dls.git
synced 2024-11-23 23:41:06 +03:00
improvements
This commit is contained in:
parent
938fc6bd60
commit
7af2e02627
@ -2,6 +2,7 @@ include:
|
|||||||
- template: Jobs/Code-Quality.gitlab-ci.yml
|
- template: Jobs/Code-Quality.gitlab-ci.yml
|
||||||
- template: Jobs/Secret-Detection.gitlab-ci.yml
|
- template: Jobs/Secret-Detection.gitlab-ci.yml
|
||||||
- template: Jobs/SAST.gitlab-ci.yml
|
- template: Jobs/SAST.gitlab-ci.yml
|
||||||
|
- template: Jobs/Container-Scanning.gitlab-ci.yml
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
key: one-key-to-rule-them-all
|
key: one-key-to-rule-them-all
|
||||||
@ -117,10 +118,11 @@ test:
|
|||||||
- openssl rsa -in app/cert/instance.private.pem -outform PEM -pubout -out app/cert/instance.public.pem
|
- openssl rsa -in app/cert/instance.private.pem -outform PEM -pubout -out app/cert/instance.public.pem
|
||||||
- cd test
|
- cd test
|
||||||
script:
|
script:
|
||||||
- pytest main.py
|
- python -m pytest main.py --junitxml=report.xml
|
||||||
artifacts:
|
artifacts:
|
||||||
reports:
|
reports:
|
||||||
dotenv: version.env
|
dotenv: version.env
|
||||||
|
junit: ['**/report.xml']
|
||||||
|
|
||||||
.test:linux:
|
.test:linux:
|
||||||
stage: test
|
stage: test
|
||||||
@ -223,6 +225,14 @@ test_coverage:
|
|||||||
coverage_format: cobertura
|
coverage_format: cobertura
|
||||||
path: '**/coverage.xml'
|
path: '**/coverage.xml'
|
||||||
|
|
||||||
|
container_scanning:
|
||||||
|
dependencies: [ build:docker ]
|
||||||
|
rules:
|
||||||
|
- if: $CONTAINER_SCANNING_DISABLED
|
||||||
|
when: never
|
||||||
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||||
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||||
|
|
||||||
.deploy:
|
.deploy:
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||||
|
Loading…
Reference in New Issue
Block a user