1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-14 04:00:30 +00:00

Allow the user to opt in to client tests

This commit is contained in:
Jonathan Coates 2021-09-19 10:43:55 +01:00
parent 94ad106272
commit b17ab16e05
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06
2 changed files with 6 additions and 1 deletions

View File

@ -27,6 +27,7 @@ jobs:
run: | run: |
mkdir -p ~/.gradle mkdir -p ~/.gradle
echo "org.gradle.daemon=false" >> ~/.gradle/gradle.properties echo "org.gradle.daemon=false" >> ~/.gradle/gradle.properties
echo "cc.tweaked.clientTests=true" >> ~/.gradle/gradle.properties
- name: Build with Gradle - name: Build with Gradle
run: | run: |

View File

@ -408,7 +408,11 @@ task setupServer(type: Copy) {
} }
} }
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") check.dependsOn("jacocoTest${name}Report")
}
} }