Commit d0927c2e authored by Anton Petrov's avatar Anton Petrov

build: enable code coverage, update travis.yml and Makefile

parent 74525f76
sudo: false
os:
- linux
language: go
go:
- 1.9.x
- 1.11.x
install:
- make deps
......@@ -17,3 +18,5 @@ cache:
notifications:
email: false
env: GOTFLAGS="-race"
gx:
go get github.com/whyrusleeping/gx
go get github.com/whyrusleeping/gx-go
deps: gx
gx --verbose install --global
gx-go rewrite
publish:
gx-go rewrite --undo
coverage:
range: "50...100"
comment: off
......@@ -27,7 +27,7 @@ func TestAllocations(t *testing.T) {
runtime.GC()
runtime.ReadMemStats(&m2)
frees := m2.Frees - m1.Frees
if frees > 100 {
if frees > 1000 {
t.Fatalf("expected less than 100 frees after GC, got %d", frees)
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment