Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

Commit

Permalink
Fixed the execution of e2e test
Browse files Browse the repository at this point in the history
1. Started using imperative project.exec method
2. Used '-x' to exclude tasks that require secret settings
  • Loading branch information
mockitoguy authored and mstachniuk committed May 14, 2017
1 parent 73261a3 commit 8d29d8e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions e2eTests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ def bumpProjectVersion(String projectName) {
}

def performRelease(String projectName) {
tasks.create("performRelease$projectName", Exec) {
println " Testing the Gradle build..."
exec {
workingDir "$projectDir/$projectName"
commandLine './gradlew', 'performRelease', '-Preleasing.dryRun'
}.execute()
commandLine './gradlew', 'publishToMavenLocal', 'testRelease', '-x', 'gitPush', '-x', 'bintrayUpload'
}
}

task check {
Expand Down

0 comments on commit 8d29d8e

Please sign in to comment.