Skip to content

Commit fe40906

Browse files
authored
Run tests in Dockerfile (except for SeleniumTest) (#265)
1 parent 1e3526c commit fe40906

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM openjdk:8-jdk as build
22

33
COPY . /project
44
WORKDIR /project
5-
RUN ./gradlew build -x test
5+
RUN ./gradlew build -PexcludeTests="**/SeleniumTest*"
66

77
# Keep any changes made here strictly in sync with Dockerfile-local
88
FROM itzg/minecraft-server:java8

build.gradle

+5
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ subprojects {
7171
}
7272

7373
test {
74+
// https://github.com/OASIS-learn-study/minecraft-storeys-maker/pull/265/
75+
if (project.hasProperty('excludeTests')) {
76+
exclude project.property('excludeTests')
77+
}
78+
7479
testLogging {
7580
// more verbose, but sometimes useful; see e.g. https://github.com/vorburger/minecraft-storeys-maker/pull/16
7681
events "failed", "passed", "skipped"

0 commit comments

Comments
 (0)