-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
35 lines (29 loc) · 1001 Bytes
/
.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
24
25
26
27
28
29
30
31
32
33
34
35
language: go
sudo: false
os:
- linux
go:
- 1.7
- 1.8
- 1.9
go_import_path: gopkg.in/workanator/go-ataman.v1
install:
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover
script:
- go vet ./...
- go build -v ./...
- go install -v
- go test -v -covermode=count -coverprofile=coverage-tmp.out ./ansi
- cat coverage-tmp.out > coverage.out
- go test -v -covermode=count -coverprofile=coverage-tmp.out ./decorate
- sed -e '1d' < coverage-tmp.out >> coverage.out
- go test -v -covermode=count -coverprofile=coverage-tmp.out ./decorate/basic
- sed -e '1d' < coverage-tmp.out >> coverage.out
- go test -v -covermode=count -coverprofile=coverage-tmp.out ./decorate/curly
- sed -e '1d' < coverage-tmp.out >> coverage.out
- go test -v -covermode=count -coverprofile=coverage-tmp.out ./generic
- sed -e '1d' < coverage-tmp.out >> coverage.out
- $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci
after_success:
- coveralls