Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Commit f8ce027

Browse files
Aurélien Gasserthibaultrobert
authored andcommitted
travis: optimize lint (#49)
* travis: lint sub-dirs except /vendors + exit with error * try with `test -z` * lint before build, but display errors after * comments * travis doesn't like the bracket notation * remove intentional lint errors * fix condition and error code * Re-add some linting errors * Revert "Re-add some linting errors" This reverts commit aa73820. * make error more visible * Remove "FAIL: ". Is that a travis bug? * work around YAML spec restriction "colon followed by space" is parsed as YAML syntax.
1 parent 4dde0c6 commit f8ce027

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ before_script:
2222

2323
script:
2424
- cd chaincode
25-
- golint
2625
- go test -v ./...
27-
- go build -v
26+
- golint_stdout="`go list ./... | grep -v /vendor/ | xargs golint`"
27+
- go build -v
28+
- test -z "$golint_stdout" || (echo -e "FAIL:" "golint error(s):\n$golint_stdout" && exit 1)

0 commit comments

Comments
 (0)