You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by du...@apache.org on 2018/01/23 03:06:16 UTC
[incubator-openwhisk-cli] branch master updated: Use regular old
gogradle (#207)
This is an automated email from the ASF dual-hosted git repository.
dubeejw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-cli.git
The following commit(s) were added to refs/heads/master by this push:
new fdbf506 Use regular old gogradle (#207)
fdbf506 is described below
commit fdbf5065a2b497cde69705419cbe6d38755f9da2
Author: Jonathan Springer <jo...@gmail.com>
AuthorDate: Mon Jan 22 22:06:14 2018 -0500
Use regular old gogradle (#207)
---
.travis.yml | 5 +----
build.gradle | 50 +-----------------------------------------
tools/travis/test_openwhisk.sh | 4 ++--
3 files changed, 4 insertions(+), 55 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index af2f0bd..c4563b9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,7 +16,6 @@ env:
- build_file_name=wsk
- zip_file_name=OpenWhisk_CLI
-
git:
depth: 3
@@ -26,8 +25,6 @@ before_install:
install:
- cd $TRAVIS_BUILD_DIR/..
- pip install --upgrade pip setuptools
- - git clone https://github.com/jonpspri/gogradle.git
- - cd gogradle && ./gradlew --console=plain assemble
before_script:
- cd $TRAVIS_BUILD_DIR/..
@@ -41,7 +38,7 @@ script:
- ./tools/travis/test_openwhisk.sh
after_success:
- - DEPLOY_BUILD_READY=true
+ - export DEPLOY_BUILD_READY=true
# This tag is automatically generated for the latest merged commit in master branch.
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_EVENT_TYPE" == "push" ] && [ "$TRAVIS_OS_NAME" == "linux" ] ; then
git config --global user.email "builds@travis-ci.com";
diff --git a/build.gradle b/build.gradle
index 3a6d6ef..d94e87f 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,44 +1,7 @@
-/*
- Holding these lines for when gogradle 0.8.2 is released (hopefully with
- pull #194 (https://github.com/gogradle/gogradle/pull/194)
-
plugins {
- id 'com.github.blindpirate.gogradle' version '0.8.2'
-}
-*/
-
-buildscript {
- repositories {
- mavenLocal()
- jcenter()
- }
- dependencies {
- classpath "org.antlr:antlr4:4.6"
- classpath group: 'com.google.inject', name: 'guice', version: '4.1.0'
- classpath group: 'org.apache.commons', name: 'commons-lang3', version: '3.5'
- classpath group: 'org.apache.commons', name: 'commons-collections4', version: '4.1'
- classpath group: 'commons-codec', name: 'commons-codec', version: '1.10'
- classpath group: 'commons-io', name: 'commons-io', version: '2.5'
- classpath 'com.google.guava:guava:20.0'
- classpath 'com.github.zafarkhaja:java-semver:0.9.0'
- classpath group: 'org.jsoup', name: 'jsoup', version: '1.7.2'
- classpath group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.8.5'
- classpath group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.8.5'
- classpath group: 'com.google.code.findbugs', name: 'annotations', version: '3.0.1'
- classpath group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-yaml', version: '2.8.5'
- classpath group: 'net.lingala.zip4j', name: 'zip4j', version: '1.3.2'
- classpath group: 'org.apache.ant', name: 'ant', version: '1.10.0'
- classpath group: 'com.typesafe.sbt', name: 'sbt-interface', version: '0.13.13'
- classpath group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-xml', version: '2.6.3'
- classpath group: 'org.codehaus.woodstox', name: 'woodstox-core-asl', version: '4.4.1'
- classpath group: 'org.jooq', name: 'joor', version: '0.9.6'
- classpath 'com.moandjiezana.toml:toml4j:0.7.2'
- classpath files('../gogradle/build/libs/gogradle-0.8.1.jar')
- }
+ id 'com.github.blindpirate.gogradle' version '0.8.1'
}
-apply plugin: 'com.github.blindpirate.gogradle'
-
golang {
packagePath = 'github.com/apache/incubator-openwhisk-cli' as String
buildTags = (rootProject.findProperty('goTags')?:'').split(',')
@@ -222,17 +185,6 @@ task compile(type: Copy, dependsOn: goBuild) {
}
/*
- Set up the goTest task to print useful information to Stdout:
- */
-goTest.generateTestReport = { testClassResults ->
- testClassResults*.results.flatten()*.failures.flatten().each() { failure ->
- logger.quiet( '-' * 40 )
- logger.quiet(failure.message)
- logger.quiet( '-' * 40 )
- }
-}
-
-/*
For each platform, create an individual archive in a platform appropriate
format (tarball for Linux, zipfile for Mac & Windows).
*/
diff --git a/tools/travis/test_openwhisk.sh b/tools/travis/test_openwhisk.sh
index 2370521..67b1cec 100755
--- a/tools/travis/test_openwhisk.sh
+++ b/tools/travis/test_openwhisk.sh
@@ -49,7 +49,7 @@ export OPENWHISK_HOME
#
# Run Unit and native tests
#
-./gradlew --console=plain goTest -PgoTags=unit,native
+./gradlew --console=plain --info goTest -PgoTags=unit,native
#
# Set up the OpenWhisk environment for integration testing
@@ -87,4 +87,4 @@ sleep 30
#
# Finally, run the integration test for the CLI
#
-./gradlew --console=plain goTest -PgoTags=integration
+./gradlew --console=plain --info goTest -PgoTags=integration
--
To stop receiving notification emails like this one, please contact
dubeejw@apache.org.