GitLab steht wegen Wartungsarbeiten am Montag, den 10. Mai, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Commit 10221c02 authored by Nils Mittler's avatar Nils Mittler 🕵🏼

add analysis ci job

parent 9431b847
......@@ -3,6 +3,7 @@ variables:
stages:
- test
- analyze
- build
- deploy
......@@ -110,10 +111,24 @@ npm_test:
stage: test
tags:
- nodejs
artifacts:
untracked: true
paths:
- .lcov_output
script:
- npm install
- export NODE_ENV='test'
- node_modules/nyc/bin/nyc.js --reporter=text node_modules/mocha/bin/mocha
- node_modules/nyc/bin/nyc.js --reporter=text --reporter=lcov --report-dir=.lcov_output node_modules/mocha/bin/mocha
sonarqube:
stage: analyze
tags:
- sonar-cli
dependencies:
- npm_test
script:
- ls -al
- sonar-scanner -Dsonar.login=$SONAR_TOKEN -Dsonar.host.url=https://scm.thm.de/sonar/
deploy:
stage: deploy
......
# Required metadata
sonar.projectKey=arsnova-click-v2-backend
sonar.projectName=arsnova.click Frontend
sonar.projectName=arsnova.click Backend
sonar.projectVersion=1.0
sonar.language=ts
sonar.sources=./src
......
Markdown is supported
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