Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
twitch
live-coding-fr
Commits
393f1f76
Commit
393f1f76
authored
Aug 22, 2020
by
Colin DAMON
Browse files
Simple CI
parent
e29d1c34
Changes
3
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
393f1f76
...
...
@@ -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"
.gitlab-common-ci.yml
View file @
393f1f76
...
...
@@ -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/"
borestop/.gitlab-ci.yml
0 → 100644
View file @
393f1f76
package-borestop
:
variables
:
PROJECT_FOLDER
:
'
borestop'
extends
:
.jhipster
only
:
refs
:
-
master
-
merge_requests
changes
:
-
'
.gitlab-common-ci.yml'
-
'
borestop/**/*'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment