From b17ab16e05ca6d3939854064666cd5a6efaa5af6 Mon Sep 17 00:00:00 2001 From: Jonathan Coates Date: Sun, 19 Sep 2021 10:43:55 +0100 Subject: [PATCH] Allow the user to opt in to client tests --- .github/workflows/main-ci.yml | 1 + build.gradle | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main-ci.yml b/.github/workflows/main-ci.yml index 616388d37..0f633d294 100644 --- a/.github/workflows/main-ci.yml +++ b/.github/workflows/main-ci.yml @@ -27,6 +27,7 @@ jobs: run: | mkdir -p ~/.gradle echo "org.gradle.daemon=false" >> ~/.gradle/gradle.properties + echo "cc.tweaked.clientTests=true" >> ~/.gradle/gradle.properties - name: Build with Gradle run: | diff --git a/build.gradle b/build.gradle index 5df4e44ba..247078286 100644 --- a/build.gradle +++ b/build.gradle @@ -408,7 +408,11 @@ task setupServer(type: Copy) { } } - check.dependsOn("jacocoTest${name}Report") + if (name != "Client" || project.findProperty('cc.tweaked.clientTests') == 'true') { + // Don't run client tests unless explicitly opted into them. They're a bit of a faff + // to run and pretty flakey. + check.dependsOn("jacocoTest${name}Report") + } }