/
.travis.yml
25 lines (25 loc) · 937 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
language: go
go:
- 1.7
env:
- "PATH=/home/travis/gopath/bin:$PATH"
before_install:
- go get github.com/mitchellh/gox
- go get github.com/tcnksm/ghr
- go get golang.org/x/tools/cmd/cover
- go get github.com/modocache/gover
- go get github.com/mattn/goveralls
script:
#- go test -v $(go list -e ./... | grep -v vendor)
- go test -coverprofile=kapacitor.coverprofile ./app/kapacitor
- go test -coverprofile=outputs.coverprofile ./app/outputs
- go test -coverprofile=rest.coverprofile ./app/rest
- gover
- goveralls -coverprofile=gover.coverprofile -service=travis-ci -repotoken $COVERALLS_TOKEN
after_success:
- gox -output "dist/{{.OS}}_{{.Arch}}_{{.Dir}}" -arch="amd64" -os="windows linux darwin" -osarch="linux/arm" github.com/popstas/pixel-server/app
deploy:
provider: script
script: ghr --username popstas --token $GITHUB_TOKEN --replace --debug $(git tag -l --contains HEAD) dist/
on:
tags: true