Add codequality

This commit is contained in:
Kay0u 2022-01-04 17:41:06 +01:00
parent bd8fe6d4db
commit 8321642a34
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D
2 changed files with 15 additions and 3 deletions

View file

@ -2,7 +2,7 @@
stages: stages:
- build - build
- install - install
- tests - test
- lint - lint
- doc - doc
- translation - translation
@ -13,6 +13,17 @@ default:
# All jobs are interruptible by default # All jobs are interruptible by default
interruptible: true interruptible: true
code_quality:
tags:
- docker
code_quality_html:
extends: code_quality
variables:
REPORT_FORMAT: html
artifacts:
paths: [gl-code-quality-report.html]
# see: https://docs.gitlab.com/ee/ci/yaml/#switch-between-branch-pipelines-and-merge-request-pipelines # see: https://docs.gitlab.com/ee/ci/yaml/#switch-between-branch-pipelines-and-merge-request-pipelines
workflow: workflow:
rules: rules:
@ -29,4 +40,5 @@ variables:
YNH_BUILD_DIR: "ynh-build" YNH_BUILD_DIR: "ynh-build"
include: include:
- template: Code-Quality.gitlab-ci.yml
- local: .gitlab/ci/*.gitlab-ci.yml - local: .gitlab/ci/*.gitlab-ci.yml

View file

@ -3,7 +3,7 @@
- DEBIAN_FRONTEND=noninteractive SUDO_FORCE_REMOVE=yes apt --assume-yes -o Dpkg::Options::="--force-confold" --allow-downgrades install ./$YNH_BUILD_DIR/*.deb - DEBIAN_FRONTEND=noninteractive SUDO_FORCE_REMOVE=yes apt --assume-yes -o Dpkg::Options::="--force-confold" --allow-downgrades install ./$YNH_BUILD_DIR/*.deb
.test-stage: .test-stage:
stage: tests stage: test
image: "after-install" image: "after-install"
variables: variables:
PYTEST_ADDOPTS: "--color=yes" PYTEST_ADDOPTS: "--color=yes"
@ -28,7 +28,7 @@
######################################## ########################################
full-tests: full-tests:
stage: tests stage: test
image: "before-install" image: "before-install"
variables: variables:
PYTEST_ADDOPTS: "--color=yes" PYTEST_ADDOPTS: "--color=yes"