Commit 9a600a6d authored by François Agneray's avatar François Agneray
Browse files

Merge branch 'sonar' into 'develop'

Sonar

See merge request !55
parents c53f81e6 8d1089b9
Pipeline #1565 passed with stages
in 13 minutes and 14 seconds
stages:
- install
- sonar
- build
- deploy
variables:
VERSION: "3.0"
SONARQUBE_URL: https://sonarqube.lam.fr
CONTAINER_IMAGE: portus.lam.fr/anis/anis-client
install:
......@@ -16,11 +19,25 @@ install:
cache:
paths:
- dist
- node_modules
policy: push
only:
refs:
- develop
sonar_scanner:
image: portus.lam.fr/ci-tools/sonar-scanner:latest
stage: sonar
script:
- sonar-scanner -Dsonar.projectKey=anis-client -Dsonar.sources=src -Dsonar.projectVersion=$VERSION -Dsonar.host.url=$SONARQUBE_URL -Dsonar.login=$SONAR_TOKEN
cache:
paths:
- node_modules
policy: pull
only:
refs:
- develop
build:
image: docker:stable
stage: build
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment