-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
23 lines (20 loc) · 1.08 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
sudo: false
language: go
go:
- 1.9
install:
- go get github.com/modocache/gover
- go get github.com/mattn/goveralls
script:
- go build .
- ./test.sh
- mkdir -p reports
- go test -v -coverprofile=reports/coverage-content.coverprofile -covermode=count github.com/devfacet/goweb/content
- go test -v -coverprofile=reports/coverage-log.coverprofile -covermode=count github.com/devfacet/goweb/log
- go test -v -coverprofile=reports/coverage-page.coverprofile -covermode=count github.com/devfacet/goweb/page
- go test -v -coverprofile=reports/coverage-request.coverprofile -covermode=count github.com/devfacet/goweb/request
- go test -v -coverprofile=reports/coverage-route.coverprofile -covermode=count github.com/devfacet/goweb/route
- go test -v -coverprofile=reports/coverage-server.coverprofile -covermode=count github.com/devfacet/goweb/server
- gover reports/ reports/coverage-all.coverprofile
- go tool cover -func=reports/coverage-all.coverprofile
- goveralls -service=travis-ci -repotoken $COVERALLS_TOKEN -covermode=count -coverprofile=reports/coverage-all.coverprofile