ci: skip test compilation in woodpecker build
This commit is contained in:
@@ -36,6 +36,15 @@ class WoodpeckerPipelineTest {
|
||||
.doesNotContain("ACTIVE_APPS=\"" + activeApps + "\"");
|
||||
}
|
||||
|
||||
@Test
|
||||
void mavenBuildSkipsTestExecutionAndCompilationInCi() throws IOException {
|
||||
String pipeline = Files.readString(repositoryRoot().resolve("woodpecker.yml"));
|
||||
|
||||
assertThat(pipeline)
|
||||
.contains("mvn -B -ntp -am -pl \"$ACTIVE_MODULES\" package -Dmaven.test.skip=true")
|
||||
.doesNotContain("-DskipTests");
|
||||
}
|
||||
|
||||
@Test
|
||||
void dockerImageExposesOnlyCurrentProductionPorts() throws IOException {
|
||||
String dockerfile = Files.readString(repositoryRoot().resolve("Dockerfile"));
|
||||
|
||||
@@ -24,7 +24,7 @@ steps:
|
||||
fi
|
||||
done
|
||||
|
||||
mvn -B -ntp -am -pl "$ACTIVE_MODULES" package -DskipTests
|
||||
mvn -B -ntp -am -pl "$ACTIVE_MODULES" package -Dmaven.test.skip=true
|
||||
|
||||
BRANCH_NAME=$(echo ${CI_COMMIT_BRANCH:-local} | tr / -)
|
||||
PROJECT_VERSION=$(mvn -q -DforceStdout help:evaluate -Dexpression=project.version)
|
||||
|
||||
Reference in New Issue
Block a user