You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/01/27 15:47:04 UTC

[GitHub] dubeejw closed pull request #214: Fail Travis when Go formatting errors exist

dubeejw closed pull request #214: Fail Travis when Go formatting errors exist
URL: https://github.com/apache/incubator-openwhisk-cli/pull/214
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/.travis.yml b/.travis.yml
index 2620fc85..a1bf72e2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -29,6 +29,9 @@ install:
 
 before_script:
   - cd $TRAVIS_BUILD_DIR/..
+  - if [[ -n "$(gofmt -l .)" ]]; then
+      exit 1
+    fi
   - git clone https://github.com/apache/incubator-openwhisk-utilities.git
   - git clone https://github.com/apache/incubator-openwhisk.git
   - ./incubator-openwhisk/tools/travis/setup.sh


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services