Skip to content

Commit 69f92bf

Browse files
committed
Update travis.yml
1 parent 7892f1b commit 69f92bf

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

.travis.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,11 @@ language: go
33
go:
44
- "1.12"
55

6-
before_install:
7-
- go get golang.org/x/lint/golint
8-
- go get github.com/go-tools/cmd/staticcheck
9-
106
install:
117
- go get
128

139
script:
14-
- go test -race -coverprofile=coverage.txt -covermode=atomic github.com/sdcoffey/techan
15-
- make lint
10+
- make test-with-coverage
1611

1712
after_success:
1813
- bash <(curl -s https://codecov.io/bash)

Makefile

+5-3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ commit: test
2525
release: clean test lint
2626
./scripts/release.sh
2727

28-
coverage: clean
29-
go test -race -cover -covermode=atomic -coverprofile=bin/coverage.txt
30-
go tool cover -html bin/coverage.txt
28+
test-with-coverage:
29+
go test -race -cover -covermode=atomic -coverprofile=coverage.txt github.com/sdcoffey/techan
30+
31+
view-coverage: test-with-coverage
32+
go tool cover -html coverage.txt

0 commit comments

Comments
 (0)