ci: skip test compilation in woodpecker build
This commit is contained in:
@@ -36,6 +36,15 @@ class WoodpeckerPipelineTest {
|
|||||||
.doesNotContain("ACTIVE_APPS=\"" + activeApps + "\"");
|
.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
|
@Test
|
||||||
void dockerImageExposesOnlyCurrentProductionPorts() throws IOException {
|
void dockerImageExposesOnlyCurrentProductionPorts() throws IOException {
|
||||||
String dockerfile = Files.readString(repositoryRoot().resolve("Dockerfile"));
|
String dockerfile = Files.readString(repositoryRoot().resolve("Dockerfile"));
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ steps:
|
|||||||
fi
|
fi
|
||||||
done
|
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 / -)
|
BRANCH_NAME=$(echo ${CI_COMMIT_BRANCH:-local} | tr / -)
|
||||||
PROJECT_VERSION=$(mvn -q -DforceStdout help:evaluate -Dexpression=project.version)
|
PROJECT_VERSION=$(mvn -q -DforceStdout help:evaluate -Dexpression=project.version)
|
||||||
|
|||||||
Reference in New Issue
Block a user