Skip to content
Snippets Groups Projects
Commit 16093625 authored by michael.divia's avatar michael.divia
Browse files

CICD Test 2

parent eebdf9fe
No related branches found
No related tags found
No related merge requests found
Pipeline #30816 failed
{
"env": {
"browser": true,
"es2021": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
}
}
stages: stages:
- build - build
- quality
variables:
SONAR_HOST_URL: https://isc-sonar.edu.hesge.ch
default: default:
image: node:lts-slim image: node:lts-slim
...@@ -8,9 +12,33 @@ default: ...@@ -8,9 +12,33 @@ default:
paths: paths:
- "node_modules/" - "node_modules/"
build-frontend: build_frontend:
stage: build stage: build
before_script: before_script:
- npm install - npm install
script: script:
- npx ng build --aot - npx ng build --aot
artifacts:
expire_in: "1 hour"
paths:
- "dist/"
lint_frontend:
stage: quality
script:
- npx eslint src/**/**.ts
sonar_frontend:
stage: quality
image:
name: leadrien/isc-sonar-scanner-cli:latest
variables:
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
cache:
key: "${CI_JOB_NAME}"
paths:
- .sonar/cache
script:
- sonar-scanner
allow_failure: true
This diff is collapsed.
sonar.projectKey=michael-frontend
sonar.qualitygate.wait=true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment