File tree 4 files changed +24
-33
lines changed
4 files changed +24
-33
lines changed Original file line number Diff line number Diff line change @@ -22,3 +22,5 @@ _testmain.go
22
22
* .exe
23
23
* .test
24
24
* .prof
25
+
26
+ coverage.txt
Original file line number Diff line number Diff line change
1
+ dist : trusty
2
+ sudo : false
3
+
1
4
language : go
2
5
3
6
go :
4
- - 1.7
5
- - 1.8
6
- - tip
7
+ - 1.9.x
8
+ - 1.10.x
9
+ - master
7
10
8
- install : make deps
11
+ matrix :
12
+ allow_failures :
13
+ - go : master
9
14
10
- script : make travis
15
+ after_success :
16
+ - bash <(curl -s https://codecov.io/bash)
Original file line number Diff line number Diff line change 1
- ifeq ($(TRAVIS_GO_VERSION ) , tip)
2
- TRAVIS_TARGET =coveralls
3
- else
4
- TRAVIS_TARGET =all
5
- endif
6
-
7
1
all : test check bench
8
2
9
3
deps :
10
4
go get -v -d -t ./...
11
- go get github.com/golang/lint/golint
12
- go get github.com/mattn/goveralls
13
-
14
- test :
15
- go test -v ./... -gocheck.v
16
-
17
- bench :
18
- go test -v -bench=. ./... -gocheck.b
19
-
20
- coverage.out :
21
- go test -coverprofile=coverage.out -covermode=count .
5
+ go get -v github.com/alecthomas/gometalinter
6
+ gometalinter --install
22
7
23
- coverage : coverage.out
24
- go tool cover -html=coverage.out
25
- rm -f coverage.out
8
+ test : deps
9
+ go test -race -v -coverprofile=coverage.txt -covermode=atomic
26
10
27
- coveralls : coverage.out
28
- goveralls -service travis-ci.org -coverprofile=coverage.out $(COVERALLS_TOKEN )
29
- rm -f coverage.out
11
+ bench : deps
12
+ go test -v -run ^Test$$ -bench=. ./... -gocheck.b
30
13
31
14
check :
32
- go tool vet .
33
- golint .
15
+ go test -i
16
+ gometalinter --vendored-linters --deadline=30s --cyclo-over=16 ./.. .
34
17
35
- travis : $( TRAVIS_TARGET )
18
+ .PHONY : deps test bench check
Original file line number Diff line number Diff line change 1
1
# Point Clustering
2
2
3
3
[ ![ Build Status] ( https://travis-ci.org/smira/go-point-clustering.svg?branch=master )] ( https://travis-ci.org/smira/go-point-clustering )
4
- [ ![ Coverage Status ] ( https://coveralls .io/repos /smira/go-point-clustering/badge.svg?branch=master )] ( https://coveralls .io/r /smira/go-point-clustering?branch=master )
4
+ [ ![ codecov ] ( https://codecov .io/gh /smira/go-point-clustering/branch/master/graph/ badge.svg )] ( https://codecov .io/gh /smira/go-point-clustering )
5
5
[ ![ GoDoc] ( https://godoc.org/github.com/smira/go-point-clustering?status.svg )] ( https://godoc.org/github.com/smira/go-point-clustering )
6
6
[ ![ FOSSA Status] ( https://app.fossa.io/api/projects/git%2Bgithub.heygears.com%2Fsmira%2Fgo-point-clustering.svg?type=shield )] ( https://app.fossa.io/projects/git%2Bgithub.heygears.com%2Fsmira%2Fgo-point-clustering?ref=badge_shield )
7
7
@@ -40,4 +40,4 @@ of point indexes which don't fit into any cluster (`noise`).
40
40
41
41
42
42
## License
43
- [ ![ FOSSA Status] ( https://app.fossa.io/api/projects/git%2Bgithub.heygears.com%2Fsmira%2Fgo-point-clustering.svg?type=large )] ( https://app.fossa.io/projects/git%2Bgithub.heygears.com%2Fsmira%2Fgo-point-clustering?ref=badge_large )
43
+ [ ![ FOSSA Status] ( https://app.fossa.io/api/projects/git%2Bgithub.heygears.com%2Fsmira%2Fgo-point-clustering.svg?type=large )] ( https://app.fossa.io/projects/git%2Bgithub.heygears.com%2Fsmira%2Fgo-point-clustering?ref=badge_large )
You can’t perform that action at this time.
0 commit comments