Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
live-coding-fr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
twitch
live-coding-fr
Commits
393f1f76
Commit
393f1f76
authored
4 years ago
by
Colin DAMON
Browse files
Options
Downloads
Patches
Plain Diff
Simple CI
parent
e29d1c34
No related branches found
No related tags found
1 merge request
!22
Resolve "Borestop"
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+1
-0
1 addition, 0 deletions
.gitlab-ci.yml
.gitlab-common-ci.yml
+20
-5
20 additions, 5 deletions
.gitlab-common-ci.yml
borestop/.gitlab-ci.yml
+11
-0
11 additions, 0 deletions
borestop/.gitlab-ci.yml
with
32 additions
and
5 deletions
.gitlab-ci.yml
+
1
−
0
View file @
393f1f76
...
@@ -8,3 +8,4 @@ include:
...
@@ -8,3 +8,4 @@ include:
-
local
:
"
/string-calculator/.gitlab-ci.yml"
-
local
:
"
/string-calculator/.gitlab-ci.yml"
-
local
:
"
/gilded-rose/.gitlab-ci.yml"
-
local
:
"
/gilded-rose/.gitlab-ci.yml"
-
local
:
"
/ugly-trivia/.gitlab-ci.yml"
-
local
:
"
/ugly-trivia/.gitlab-ci.yml"
-
local
:
"
/borestop/.gitlab-ci.yml"
This diff is collapsed.
Click to expand it.
.gitlab-common-ci.yml
+
20
−
5
View file @
393f1f76
...
@@ -5,10 +5,6 @@ variables:
...
@@ -5,10 +5,6 @@ variables:
stages
:
stages
:
-
build
-
build
cache
:
paths
:
-
.m2/repository
.java
:
.java
:
image
:
maven:3.6.3-jdk-14
image
:
maven:3.6.3-jdk-14
stage
:
build
stage
:
build
...
@@ -18,7 +14,6 @@ cache:
...
@@ -18,7 +14,6 @@ cache:
-
cd $PROJECT_FOLDER
-
cd $PROJECT_FOLDER
script
:
script
:
-
mvn $MAVEN_CLI_OPTS clean package
-
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
-
awk -F"," '{ branches += $6 + $7; covered += $7 } END { print covered, "/", branches, "branches covered"; print 100*covered/branches, "%covered" }' target/site/jacoco/jacoco.csv
artifacts
:
artifacts
:
reports
:
reports
:
...
@@ -28,3 +23,23 @@ cache:
...
@@ -28,3 +23,23 @@ cache:
name
:
"
$PROJECT_FOLDER-report"
name
:
"
$PROJECT_FOLDER-report"
expire_in
:
1 day
expire_in
:
1 day
coverage
:
"
/([^%]+)
%covered/"
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/"
This diff is collapsed.
Click to expand it.
borestop/.gitlab-ci.yml
0 → 100644
+
11
−
0
View file @
393f1f76
package-borestop
:
variables
:
PROJECT_FOLDER
:
'
borestop'
extends
:
.jhipster
only
:
refs
:
-
master
-
merge_requests
changes
:
-
'
.gitlab-common-ci.yml'
-
'
borestop/**/*'
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment