Commit 393f1f76 authored by Colin DAMON's avatar Colin DAMON

Simple CI

parent e29d1c34
......@@ -8,3 +8,4 @@ include:
- local: "/string-calculator/.gitlab-ci.yml"
- local: "/gilded-rose/.gitlab-ci.yml"
- local: "/ugly-trivia/.gitlab-ci.yml"
- local: "/borestop/.gitlab-ci.yml"
......@@ -5,10 +5,6 @@ variables:
stages:
- build
cache:
paths:
- .m2/repository
.java:
image: maven:3.6.3-jdk-14
stage: build
......@@ -18,7 +14,6 @@ cache:
- cd $PROJECT_FOLDER
script:
- mvn $MAVEN_CLI_OPTS clean package
- cat target/site/jacoco/index.html
- awk -F"," '{ branches += $6 + $7; covered += $7 } END { print covered, "/", branches, "branches covered"; print 100*covered/branches, "%covered" }' target/site/jacoco/jacoco.csv
artifacts:
reports:
......@@ -28,3 +23,23 @@ cache:
name: "$PROJECT_FOLDER-report"
expire_in: 1 day
coverage: "/([^%]+) %covered/"
.jhipster:
stage: build
image: jhipster/jhipster:v6.10.1
services:
- docker:19.03.8-dind
tags:
- docker
before_script:
- cd $PROJECT_FOLDER
script:
- ./mvnw -B -Pprod,swagger verify
- awk -F"," '{ branches += $6 + $7; covered += $7 } END { print covered, "/", branches, "branches covered"; print 100*covered/branches, "%covered" }' target/jacoco-aggregate/index.csv
artifacts:
reports:
junit: $PROJECT_FOLDER/target/test-results/TEST-*.xml
paths:
- $PROJECT_FOLDER/target/jacoco-aggregate
expire_in: 1 day
coverage: "/([^%]+) %covered/"
package-borestop:
variables:
PROJECT_FOLDER: 'borestop'
extends: .jhipster
only:
refs:
- master
- merge_requests
changes:
- '.gitlab-common-ci.yml'
- 'borestop/**/*'
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