Skip to content
Snippets Groups Projects
Commit 34285ba5 authored by TheSkeletonGentleman's avatar TheSkeletonGentleman
Browse files

.yml

parent 95ea3c06
Branches
No related tags found
No related merge requests found
......@@ -2,33 +2,39 @@ stages:
- build
- test
- package
variables:
MAVEN_OPTS: "-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository"
- quality
cache:
key: maven
paths:
- .m2/repository/
key: npm
image: node:lts-slim
construire:
build:
stage: build
script:
- mvn clean package
- npm ci
- npm run build
artifacts:
paths:
- target/
- dist
expire_in: 1 hour
tester:
stage: test
script:
- mvn test
empaqueter:
stage: package
script:
- mvn package
artifacts:
build-sonar:
stage: quality
image: leadrien/isc-sonar-scanner-cli:latest
cache:
policy: pull-push
key: "sonar-cache-$CI_COMMIT_REF_SLUG"
paths:
- target/*.jar
\ No newline at end of file
- "${SONAR_USER_HOME}/cache"
- sonar-scanner/
script:
- sonar-scanner -Dsonar.host.url="${SONAR_HOST_URL}"
allow_failure: true
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- if: $CI_COMMIT_BRANCH == 'master'
- if: $CI_COMMIT_BRANCH == 'main'
- if: $CI_COMMIT_BRANCH == 'develop'
\ No newline at end of file
sonar.projectKey=cyril.rouiller_breakout_d929c1ae-3f65-4e95-9e4f-527e30e697e9
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