You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ma...@apache.org on 2018/02/19 10:19:22 UTC
[incubator-openwhisk] branch master updated: Only run
createKeystore if tests are actually run. (#3282)
This is an automated email from the ASF dual-hosted git repository.
markusthoemmes pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git
The following commit(s) were added to refs/heads/master by this push:
new bc4b0fd Only run createKeystore if tests are actually run. (#3282)
bc4b0fd is described below
commit bc4b0fd23012d4f351875e8b81658b8a62b85633
Author: Chetan Mehrotra <ch...@apache.org>
AuthorDate: Mon Feb 19 15:49:19 2018 +0530
Only run createKeystore if tests are actually run. (#3282)
---
tests/build.gradle | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tests/build.gradle b/tests/build.gradle
index 7cf5e18..e31f3ff 100644
--- a/tests/build.gradle
+++ b/tests/build.gradle
@@ -85,8 +85,14 @@ task createKeystore(dependsOn: deleteKeystore) {
doLast {
Properties props = new Properties()
props.load(new FileInputStream(file('../whisk.properties')))
+ keystorePath.parentFile.mkdirs()
def cmd = ['keytool', '-import', '-alias', 'Whisk', '-noprompt', '-trustcacerts', '-file', file(props['whisk.ssl.cert']), '-keystore', keystorePath, '-storepass', 'openwhisk']
cmd.execute().waitForProcessOutput(System.out, System.err)
}
}
-compileTestScala.finalizedBy createKeystore
+
+afterEvaluate {
+ tasks.withType(Test) {
+ dependsOn createKeystore
+ }
+}
--
To stop receiving notification emails like this one, please contact
markusthoemmes@apache.org.