File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,25 @@ language: go
7
7
go :
8
8
- " 1.10.x"
9
9
10
+ install :
11
+ # for lint
12
+ - go get github.com/alecthomas/gometalinter;gometalinter --install --update
13
+
10
14
script :
15
+ # test
11
16
- go test ./... -test.bench=".*" -test.benchtime 100ms -v -coverprofile c.out
17
+ # lint
18
+ - gometalinter --enable=golint --enable=vet --enable=gofmt ./...
12
19
- gofmt -s -l .
13
20
14
21
before_script :
22
+ # for codeClimate coverage
15
23
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
16
24
- chmod +x ./cc-test-reporter
17
25
- ./cc-test-reporter before-build
18
26
19
27
after_script :
28
+ # for go report card
20
29
- curl -d "repo=github.com/shady831213/algorithms" https://goreportcard.com/checks
30
+ # for codeClimate coverage
21
31
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
You can’t perform that action at this time.
0 commit comments