-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up the assignment project for summer 2025
- Loading branch information
Showing
3 changed files
with
130 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
workflow: | ||
name: CI | ||
rules: | ||
- if: $CI_PIPELINE_SOURCE == 'merge_request_event' | ||
|
||
image: | ||
name: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/maven:3.9.9-eclipse-temurin-21-alpine | ||
|
||
stages: | ||
- build | ||
- test | ||
- grade | ||
|
||
build: | ||
stage: build | ||
artifacts: | ||
when: always | ||
paths: | ||
- target | ||
script: | ||
- mvn -V --color always -ntp -fae test-compile -Pci | ||
|
||
test: | ||
stage: test | ||
needs: | ||
- analysis | ||
artifacts: | ||
when: always | ||
paths: | ||
- target | ||
script: | ||
- mvn -V --color always -ntp -fae verify -Pci | ||
|
||
autograding: | ||
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/uhafner/autograding-gitlab-action:v3 | ||
stage: grade | ||
when: always | ||
script: | ||
- java -cp @/app/jib-classpath-file edu.hm.hafner.grading.gitlab.GitLabAutoGradingRunner | ||
variables: | ||
MAX_WARNING_COMMENTS: 10 | ||
MAX_COVERAGE_COMMENTS: 10 | ||
CONFIG: | | ||
{ | ||
"tests": { | ||
"name": "Tests", | ||
"tools": [ | ||
{ | ||
"id": "junit", | ||
"name": "Tests", | ||
"pattern": "**/target/*-reports/TEST*.xml" | ||
} | ||
], | ||
"passedImpact": 0, | ||
"skippedImpact": -1, | ||
"failureImpact": -5, | ||
"maxScore": 100 | ||
}, | ||
"analysis": [ | ||
{ | ||
"name": "Style", | ||
"id": "style", | ||
"tools": [ | ||
{ | ||
"id": "checkstyle", | ||
"name": "CheckStyle", | ||
"pattern": "**/target/**checkstyle-result.xml" | ||
}, | ||
{ | ||
"id": "pmd", | ||
"name": "PMD", | ||
"pattern": "**/target/**pmd.xml" | ||
} | ||
], | ||
"errorImpact": -1, | ||
"highImpact": -1, | ||
"normalImpact": -1, | ||
"lowImpact": -1, | ||
"maxScore": 100 | ||
}, | ||
{ | ||
"name": "Bugs", | ||
"id": "bugs", | ||
"icon": "bug", | ||
"tools": [ | ||
{ | ||
"id": "spotbugs", | ||
"name": "SpotBugs", | ||
"sourcePath": "src/main/java", | ||
"pattern": "**/target/**spotbugsXml.xml" | ||
} | ||
], | ||
"errorImpact": -3, | ||
"highImpact": -3, | ||
"normalImpact": -3, | ||
"lowImpact": -3, | ||
"maxScore": 100 | ||
} | ||
], | ||
"coverage": [ | ||
{ | ||
"name": "Code Coverage", | ||
"tools": [ | ||
{ | ||
"id": "jacoco", | ||
"name": "Line Coverage", | ||
"metric": "line", | ||
"sourcePath": "src/main/java", | ||
"pattern": "**/target/site/jacoco/jacoco.xml" | ||
}, | ||
{ | ||
"id": "jacoco", | ||
"name": "Branch Coverage", | ||
"metric": "branch", | ||
"sourcePath": "src/main/java", | ||
"pattern": "**/target/site/jacoco/jacoco.xml" | ||
} | ||
], | ||
"maxScore": 100, | ||
"missedPercentageImpact": -1 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
/** | ||
* An exam contains several assignments. | ||
*/ | ||
public class Exam { | ||
public class Exam { | ||
} |