Skip to content

Commit 875b262

Browse files
committed
added settings for coveralls.io in .travis.yml
1 parent d78ca17 commit 875b262

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: go
2-
2+
sudo: false
33
go:
44
- 1.8
55
- 1.7.5
@@ -33,7 +33,10 @@ go:
3333
- 1.1.2
3434
- 1.1.1
3535
- 1.1
36-
36+
before_install:
37+
- go get github.com/mattn/goveralls
38+
script:
39+
- $HOME/gopath/bin/goveralls -service=travis-ci
3740
matrix:
3841
fast_finish: true
3942
allow_failures:

calmly_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ func TestStack(t *testing.T) {
131131
}
132132
divByZero := func() {
133133
a, b := 1, 0
134-
_ = a / b
134+
a = a / b
135+
_ = a
135136
}
136137

137138
out := Try(divByZero)

0 commit comments

Comments
 (0)