Skip to content

Commit e86f25f

Browse files
committed
Modernize build, switch to codecov.io
1 parent 9f65fca commit e86f25f

File tree

4 files changed

+24
-33
lines changed

4 files changed

+24
-33
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ _testmain.go
2222
*.exe
2323
*.test
2424
*.prof
25+
26+
coverage.txt

.travis.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1+
dist: trusty
2+
sudo: false
3+
14
language: go
25

36
go:
4-
- 1.7
5-
- 1.8
6-
- tip
7+
- 1.9.x
8+
- 1.10.x
9+
- master
710

8-
install: make deps
11+
matrix:
12+
allow_failures:
13+
- go: master
914

10-
script: make travis
15+
after_success:
16+
- bash <(curl -s https://codecov.io/bash)

Makefile

+9-26
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,18 @@
1-
ifeq ($(TRAVIS_GO_VERSION), tip)
2-
TRAVIS_TARGET=coveralls
3-
else
4-
TRAVIS_TARGET=all
5-
endif
6-
71
all: test check bench
82

93
deps:
104
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
227

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
2610

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
3013

3114
check:
32-
go tool vet .
33-
golint .
15+
go test -i
16+
gometalinter --vendored-linters --deadline=30s --cyclo-over=16 ./...
3417

35-
travis: $(TRAVIS_TARGET)
18+
.PHONY: deps test bench check

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Point Clustering
22

33
[![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)
55
[![GoDoc](https://godoc.org/github.com/smira/go-point-clustering?status.svg)](https://godoc.org/github.com/smira/go-point-clustering)
66
[![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)
77

@@ -40,4 +40,4 @@ of point indexes which don't fit into any cluster (`noise`).
4040

4141

4242
## 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)

0 commit comments

Comments
 (0)