openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dube...@apache.org
Subject [incubator-openwhisk-wskdeploy] 01/01: Go format source code - Fail Traivs if source code is not formatted properly
Date Sun, 28 Jan 2018 07:09:35 GMT
This is an automated email from the ASF dual-hosted git repository.

dubeejw pushed a commit to branch go-fmt
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-wskdeploy.git

commit 360edae6e39fd9d9325b1f73e0f06d6045d31100
Author: dubeejw <jwdubee@us.ibm.com>
AuthorDate: Sun Jan 28 02:08:49 2018 -0500

    Go format source code
    - Fail Traivs if source code is not formatted properly
---
 .travis.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index f297d3c..3c24eeb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -13,6 +13,9 @@ install:
 - go get -u github.com/golang/lint/golint
 - go get -u github.com/stretchr/testify
 - go get -u github.com/tools/godep
+before_script:
+- GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/)
+- test -z "$(gofmt -s -l $(echo $GO_FILES))"
 script:
 - echo $TRAVIS
 - echo $TRAVIS_PULL_REQUEST

-- 
To stop receiving notification emails like this one, please contact
dubeejw@apache.org.

Mime
View raw message