Skip to content

Commit ea8863d

Browse files
committed
For #607. Work on artifacts from CI
1 parent 067f176 commit ea8863d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Earthfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,16 @@ run-with-gradle:
1818
RUN ./run-with-gradle.sh
1919

2020
# For CI so that GitHub can copy artifacts
21+
# Coverage reports
22+
SAVE ARTIFACT --keep-ts build/reports/jacoco/test AS LOCAL build/reports/jacoco/test
2123
# Javadocs and jars
2224
SAVE ARTIFACT --keep-ts build/libs/modern-java-practices-0-javadoc.jar
2325
SAVE ARTIFACT --keep-ts build/docs/javadoc/ AS LOCAL build/docs/javadoc/
2426

2527
# Test coverage and badge for Gradle:
2628
# You need to PICK ONE from Gradle or Maven for your build.
27-
# This project uses Maven (see below) to create the code coverage badge.
29+
# This project uses Maven (see below) to create the code coverage badge to
30+
# avoid multiple updating.
2831
# Commented is the minimum needed from the containerized build when using
2932
# Gradle.
3033
# After this enabling this, you still need to update the GitHub action steps
@@ -40,13 +43,16 @@ build-with-maven:
4043
RUN --secret OWASP_NVD_API_KEY ./mvnw --no-transfer-progress clean verify
4144

4245
# For CI so that GitHub can copy artifacts
46+
# Coverage reports
47+
SAVE ARTIFACT --keep-ts target/site/jacoco/
4348
# Javadocs and jars
4449
SAVE ARTIFACT --keep-ts target/modern-java-practices-0-SNAPSHOT-javadoc.jar AS LOCAL target/modern-java-practices-0-SNAPSHOT-javadoc.jar
4550
SAVE ARTIFACT --keep-ts target/apidocs/ AS LOCAL target/apidocs/
4651
SAVE ARTIFACT --keep-ts target/modern-java-practices-0-SNAPSHOT-test-javadoc.jar AS LOCAL target/modern-java-practices-0-SNAPSHOT-test-javadoc.jar
4752
SAVE ARTIFACT --keep-ts target/testapidocs/ AS LOCAL target/testapidocs/
4853

49-
# Test coverage and badge
54+
# Test coverage and badge for Maven:
55+
# See above comments on enabling for Gradle.
5056
# Note that ONLY the Maven containerized build updates the README frontpage
5157
# badge for coverage. This is to avoid multiple updating.
5258
SAVE ARTIFACT --keep-ts target/site/jacoco/jacoco.csv AS LOCAL target/site/jacoco/jacoco.csv

0 commit comments

Comments
 (0)