This is an automated email from the ASF dual-hosted git repository. csantanapr pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-runtime-swift.git
commit eb5ddf069a6fa6f2ff5f40035e2e568f8d6aae1b Author: Carlos Santana <csantan...@apache.org> AuthorDate: Mon Feb 26 17:28:18 2018 -0500 update readme with maven install command --- README.md | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 558b548..2ae5780 100644 --- a/README.md +++ b/README.md @@ -174,7 +174,7 @@ To use as a kind action wsk action update myAction myAction.swift --kind swift:3.1.1 ``` -### Local development +## Local development ``` ./gradlew core:swiftAction:distDocker ``` @@ -208,6 +208,37 @@ ln -s ${ROOTDIR}/ansible/environments/local ${OPENWHISK_HOME}/ansible/environmen wskdev fresh -t local-swift ``` +### Testing +Install dependencies from the root directory on $OPENWHISK_HOME repository +``` +./gradlew :common:scala:install :core:controller:install :core:invoker:install :tests:install +``` + +Using gradle for the ActionContainer tests you need to use a proxy if running on Mac, if Linux then don't use proxy options +You can pass the flags `-Dhttp.proxyHost=localhost -Dhttp.proxyPort=3128` directly in gradle command. +Or save in your `$HOME/.gradle/gradle.properties` +``` +systemProp.http.proxyHost=localhost +systemProp.http.proxyPort=3128 +``` +Using gradle to run all tests +``` +./gradlew :tests:test +``` +Using gradle to run some tests +``` +./gradlew :tests:test --tests *ActionContainerTests* +``` +Using IntelliJ: +- Import project as gradle project. +- Make sure working directory is root of the project/repo +- Add the following Java VM properties in ScalaTests Run Configuration, easiest is to change the Defaults for all ScalaTests to use this VM properties +``` +-Dhttp.proxyHost=localhost +-Dhttp.proxyPort=3128 +``` + +#### Using container image to test To use as docker action push to your own dockerhub account ``` docker tag whisk/action-swift-v3.1.1 $user_prefix/action-swift-v3.1.1 -- To stop receiving notification emails like this one, please contact csantan...@apache.org.