File tree Expand file tree Collapse file tree 3 files changed +52
-1
lines changed Expand file tree Collapse file tree 3 files changed +52
-1
lines changed Original file line number Diff line number Diff line change 77 working_directory : /go/src/github.com/joshdk/go-junit
88 steps :
99 - checkout
10- - run : gofmt -l -s .
10+ - run :
11+ name : Install build tools
12+ command : |
13+ go get -u github.com/alecthomas/gometalinter
14+ go get -u github.com/jstemmer/go-junit-report
15+ gometalinter --install
16+ mkdir test-results
17+ - run :
18+ name : Lint Go code
19+ command : gometalinter
20+ - run :
21+ name : Test Go code
22+ command : go test -v 2>&1 | tee test-results/report.log
23+ - run :
24+ name : Generate test report
25+ command : cat test-results/report.log | go-junit-report -go-version $GOLANG_VERSION > test-results/report.xml
26+ when : always
27+ - store_test_results :
28+ path : test-results
Original file line number Diff line number Diff line change 1+ test-results /
Original file line number Diff line number Diff line change 1+ {
2+ "Disable" : [
3+ " gosimple" ,
4+ " lll" ,
5+ " staticcheck" ,
6+ " unused"
7+ ],
8+ "Enable" : [
9+ " deadcode" ,
10+ " dupl" ,
11+ " errcheck" ,
12+ " gas" ,
13+ " goconst" ,
14+ " gocyclo" ,
15+ " goimports" ,
16+ " golint" ,
17+ " gotype" ,
18+ " gotypex" ,
19+ " ineffassign" ,
20+ " interfacer" ,
21+ " maligned" ,
22+ " megacheck" ,
23+ " misspell" ,
24+ " nakedret" ,
25+ " safesql" ,
26+ " structcheck" ,
27+ " unconvert" ,
28+ " unparam" ,
29+ " varcheck" ,
30+ " vet"
31+ ]
32+ }
You can’t perform that action at this time.
0 commit comments