Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
assessment-2024-starter-monopoly
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Keegan Fernandes
assessment-2024-starter-monopoly
Commits
f07c2e04
Commit
f07c2e04
authored
1 year ago
by
Carl Jones
Browse files
Options
Downloads
Patches
Plain Diff
Update CI and Gradle build to Java 17.
Add pitest for mutation testing. Separate build into many phases.
parent
ad8d0c20
No related branches found
Branches containing commit
Tags
tag-to-test-CI-1
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+52
-5
52 additions, 5 deletions
.gitlab-ci.yml
build.gradle
+20
-0
20 additions, 0 deletions
build.gradle
settings.gradle
+1
-1
1 addition, 1 deletion
settings.gradle
with
73 additions
and
6 deletions
.gitlab-ci.yml
+
52
−
5
View file @
f07c2e04
...
...
@@ -8,8 +8,12 @@ default:
stages
:
-
compile
-
analyse
-
assemble
-
build
-
code-coverage
-
mutate
-
publish
before_script
:
...
...
@@ -24,12 +28,36 @@ cache:
-
.gradle/wrapper
-
.gradle/caches
compile:gradle
:
stage
:
compile
only
:
-
tags
script
:
-
./gradlew --continue compileJava
artifacts
:
name
:
"
$CI_JOB_NAME"
paths
:
-
./build/classes/java/main
expire_in
:
4 week
analyse:gradle
:
stage
:
analyse
only
:
-
tags
script
:
-
./gradlew --continue checkstyleMain
artifacts
:
name
:
"
$CI_JOB_NAME"
paths
:
-
./build/reports/checkstyle/
expire_in
:
4 week
assemble:gradle
:
stage
:
assemble
only
:
-
tags
script
:
-
./gradlew shadowJar
-
./gradlew
--continue
shadowJar
artifacts
:
name
:
"
$CI_JOB_NAME"
paths
:
...
...
@@ -42,16 +70,36 @@ build:gradle:
only
:
-
tags
script
:
-
./gradlew
buildAndReport
-
./gradlew
--continue build
artifacts
:
name
:
"
$CI_JOB_NAME"
paths
:
-
./build/reports/tests/
-
./build/reports/checkstyle/
-
./build/jacocoHtml
-
./build/libs/*.jar
-
./build/jacoco/test.exec
expire_in
:
4 week
code-coverage:gradle
:
stage
:
code-coverage
only
:
-
tags
script
:
-
./gradlew --continue jacocoTestReport
-
./gradlew --continue jacocoTestCoverageVerification
artifacts
:
name
:
"
$CI_JOB_NAME"
paths
:
-
./build/jacocoHtml/
expire_in
:
4 week
mutate:gradle
:
stage
:
mutate
only
:
-
tags
script
:
-
./gradlew --continue pitest
pages
:
...
...
@@ -73,4 +121,3 @@ pages:
paths
:
-
public
This diff is collapsed.
Click to expand it.
build.gradle
+
20
−
0
View file @
f07c2e04
...
...
@@ -4,9 +4,13 @@ plugins {
id
'checkstyle'
id
'idea'
id
'application'
id
'info.solidsoft.pitest'
version
'1.9.11'
id
'com.github.johnrengelman.shadow'
version
'7.1.0'
}
apply
plugin:
'info.solidsoft.pitest.aggregator'
// to 'pitestReportAggregate' appear
group
'com.nsa.cm6123-6623'
version
'1.0-SNAPSHOT'
...
...
@@ -104,3 +108,19 @@ task buildAndReport {
rootProject
.
tasks
.
named
(
"jar"
)
{
duplicatesStrategy
=
'include'
}
pitest
{
targetClasses
=
[
'uk.ac.cf.cm6123.cardgames.*'
]
//by default "${project.group}.*"
//pitestVersion = '1.9.0' //not needed when a default PIT version should be used
threads
=
4
outputFormats
=
[
'XML'
,
'HTML'
]
timestampedReports
=
false
junit5PluginVersion
=
'1.0.0'
reportAggregator
{
testStrengthThreshold
.
set
(
50
)
mutationThreshold
.
set
(
40
)
maxSurviving
.
set
(
3
)
}
}
This diff is collapsed.
Click to expand it.
settings.gradle
+
1
−
1
View file @
f07c2e04
rootProject
.
name
=
'assessment-202
3
-starter-monopoly'
rootProject
.
name
=
'assessment-202
4
-starter-monopoly'
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