File tree 5 files changed +27
-23
lines changed
5 files changed +27
-23
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,11 @@ install:
7
7
- go get golang.org/x/tools/cmd/vet
8
8
- go get golang.org/x/tools/cmd/cover
9
9
- go get github.com/mattn/goveralls
10
-
10
+ - go get github.com/wadey/gocovmerge
11
11
script :
12
12
- go build
13
- - ./travis/gofmt.sh
14
- - ./travis/govet.sh
13
+ - go fmt ./...
14
+ - go vet ./...
15
15
- go test -i -race ./...
16
16
- go test -v -race ./...
17
- - ./travis/coveralls-script.sh
18
- env :
19
- global :
20
- secure : fi/zxSp5eF6Mt8yrgJakBVinDpCDFy3zPZ4Jy7jsyoKWgF7CdSFmh0WBcN932KOLCRaVm7ZqD2RwO9SifIsBcDtZqML4RKg3Q+T+Uqt4LpskVobMYkPKDcA5i3c3ifhJu/wzl7Y/jnysvjxCwQrH/nGAc4+AwyH6x2TjKF7UFoY=
17
+ - ./scripts/cov.sh TRAVIS
Original file line number Diff line number Diff line change
1
+ #! /bin/bash -e
2
+ # Run from directory above via ./scripts/cov.sh
3
+
4
+ rm -rf ./cov
5
+ mkdir cov
6
+ go test -v -covermode=atomic -coverprofile=./cov/auth.out ./auth
7
+ go test -v -covermode=atomic -coverprofile=./cov/conf.out ./conf
8
+ go test -v -covermode=atomic -coverprofile=./cov/hash.out ./hash
9
+ go test -v -covermode=atomic -coverprofile=./cov/hashmap.out ./hashmap
10
+ go test -v -covermode=atomic -coverprofile=./cov/log.out ./logger
11
+ go test -v -covermode=atomic -coverprofile=./cov/server.out ./server
12
+ go test -v -covermode=atomic -coverprofile=./cov/sublist.out ./sublist
13
+ go test -v -covermode=atomic -coverprofile=./cov/test.out ./test
14
+ gocovmerge ./cov/* .out > acc.out
15
+ rm -rf ./cov
16
+
17
+ # If we have an arg, assume travis run and push to coveralls. Otherwise launch browser results
18
+ if [[ -n $1 ]]; then
19
+ $HOME /gopath/bin/goveralls -coverprofile=acc.out -service travis-ci
20
+ rm -rf ./acc.out
21
+ else
22
+ go tool cover -html=acc.out
23
+ fi
File renamed without changes.
File renamed without changes.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments