Skip to content

Commit

Permalink
Prune images between module checks (testcontainers#2376)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsideup authored and quincy committed May 28, 2020
1 parent 416a7b4 commit ab0c353
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 1 addition & 3 deletions azure-pipelines.yml
Expand Up @@ -37,9 +37,7 @@ jobs:
inputs:
gradleWrapperFile: 'gradlew'
jdkVersionOption: '1.11'
options: '--continue -x testcontainers:check -x jdbc-test:check'
options: '--continue -x testcontainers:check -x jdbc-test:check -PpostCheckCommand="docker image prune -af"'
tasks: 'check'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'


11 changes: 11 additions & 0 deletions build.gradle
Expand Up @@ -71,6 +71,17 @@ subprojects {
// Ensure that Javadoc generation is always tested
check.dependsOn(javadoc)

def postCheckCommand = properties["postCheckCommand"]
if (postCheckCommand) {
check.finalizedBy(tasks.create("postCheckExec", Exec) {
if (org.gradle.internal.os.OperatingSystem.current().isWindows()) {
commandLine('cmd', '/c', postCheckCommand)
} else {
commandLine('sh', '-c', postCheckCommand)
}
})
}

javadoc {
dependsOn delombok
source = delombok.outputs
Expand Down

0 comments on commit ab0c353

Please sign in to comment.