Skip to content

Commit c6ef814

Browse files
author
Ubuntu
committed
add lint
1 parent 2dc3d3b commit c6ef814

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,25 @@ language: go
77
go:
88
- "1.10.x"
99

10+
install:
11+
#for lint
12+
- go get github.com/alecthomas/gometalinter;gometalinter --install --update
13+
1014
script:
15+
#test
1116
- go test ./... -test.bench=".*" -test.benchtime 100ms -v -coverprofile c.out
17+
#lint
18+
- gometalinter --enable=golint --enable=vet --enable=gofmt ./...
1219
- gofmt -s -l .
1320

1421
before_script:
22+
#for codeClimate coverage
1523
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
1624
- chmod +x ./cc-test-reporter
1725
- ./cc-test-reporter before-build
1826

1927
after_script:
28+
#for go report card
2029
- curl -d "repo=github.com/shady831213/algorithms" https://goreportcard.com/checks
30+
#for codeClimate coverage
2131
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

0 commit comments

Comments
 (0)