Update .gitlab-ci.yml file

This commit is contained in:
Oliver Falk
2023-04-19 10:46:31 +00:00
parent f01e49d495
commit 16f809d8a6

View File

@@ -1,16 +1,3 @@
# You can override the included template(s) by including variable overrides
# SAST customization: https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings
# Secret Detection customization: https://docs.gitlab.com/ee/user/application_security/secret_detection/#customizing-settings
# Dependency Scanning customization: https://docs.gitlab.com/ee/user/application_security/dependency_scanning/#customizing-the-dependency-scanning-settings
# Container Scanning customization: https://docs.gitlab.com/ee/user/application_security/container_scanning/#customizing-the-container-scanning-settings
# Note that environment variables can be set in several places
# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
default:
image:
name: quay.io/rhn_support_ofalk/fedora35-python3
entrypoint:
- "/bin/sh"
- "-c"
before_script: before_script:
- virtualenv -p python3 /tmp/.virtualenv - virtualenv -p python3 /tmp/.virtualenv
- source /tmp/.virtualenv/bin/activate - source /tmp/.virtualenv/bin/activate
@@ -20,7 +7,13 @@ before_script:
- pip install coverage - pip install coverage
- pip install pycco - pip install pycco
- pip install django_coverage_plugin - pip install django_coverage_plugin
test_and_coverage: test_and_coverage:
image:
name: quay.io/rhn_support_ofalk/fedora35-python3
entrypoint:
- "/bin/sh"
- "-c"
stage: test stage: test
coverage: "/^TOTAL.*\\s+(\\d+\\%)$/" coverage: "/^TOTAL.*\\s+(\\d+\\%)$/"
script: script:
@@ -36,7 +29,13 @@ test_and_coverage:
artifacts: artifacts:
paths: paths:
- htmlcov/ - htmlcov/
pycco: pycco:
image:
name: quay.io/rhn_support_ofalk/fedora35-python3
entrypoint:
- "/bin/sh"
- "-c"
stage: test stage: test
script: script:
- "/bin/true" - "/bin/true"
@@ -46,7 +45,13 @@ pycco:
paths: paths:
- pycco/ - pycco/
expire_in: 14 days expire_in: 14 days
pages: pages:
image:
name: quay.io/rhn_support_ofalk/fedora35-python3
entrypoint:
- "/bin/sh"
- "-c"
before_script: before_script:
- "/bin/true" - "/bin/true"
- "/bin/true" - "/bin/true"
@@ -63,6 +68,7 @@ pages:
expire_in: 14 days expire_in: 14 days
only: only:
- master - master
build-image: build-image:
image: docker image: docker
services: services:
@@ -100,4 +106,4 @@ stages:
sast: sast:
stage: test stage: test
include: include:
- template: Auto-DevOps.gitlab-ci.yml - template: Auto-DevOps.gitlab-ci.yml