Skip to content
Snippets Groups Projects
Commit 025eee11 authored by nfontrod's avatar nfontrod
Browse files

.gitlab-ci.yml naming stages ad moving artifacts in the first job

parent b8d00165
No related branches found
No related tags found
No related merge requests found
Pipeline #130 failed
stages:
- unittest
- quality
tests: tests:
stage: unittest
image: "python:3.8-slim" image: "python:3.8-slim"
before_script: before_script:
- apt-get update - apt-get update
...@@ -19,9 +24,13 @@ tests: ...@@ -19,9 +24,13 @@ tests:
script: script:
- coverage run -m unittest discover - coverage run -m unittest discover
- coverage xml - coverage xml
artifacts:
reports:
junit: coverage.xml
sonarqube-check: sonarqube-check:
stage: quality
image: image:
name: sonarsource/sonar-scanner-cli:latest name: sonarsource/sonar-scanner-cli:latest
entrypoint: [ "" ] entrypoint: [ "" ]
...@@ -30,9 +39,8 @@ sonarqube-check: ...@@ -30,9 +39,8 @@ sonarqube-check:
SONAR_HOST_URL: http://192.168.1.58:9000/ # You have to not use localhost otherwise it will not work SONAR_HOST_URL: http://192.168.1.58:9000/ # You have to not use localhost otherwise it will not work
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
artifacts: dependencies:
reports: - unittest
junit: coverage.xml
cache: cache:
key: "${CI_JOB_NAME}" key: "${CI_JOB_NAME}"
paths: paths:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment