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"));
|
||||
|
||||
Reference in New Issue
Block a user