forked from saymedia/packer-post-processor-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (24 loc) · 753 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
sudo: false
language: go
go:
- 1.4
- tip
matrix:
fast_finish: true
allow_failures:
- go: tip
env:
- "PATH=/home/travis/gopath/bin:$PATH"
before_install:
- go get github.com/mitchellh/gox
- gox -build-toolchain -osarch="linux/amd64 darwin/amd64"
- go get github.com/tcnksm/ghr
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover
script:
- go test -v -covermode=count -coverprofile=coverage.out ./template/...
- goveralls -coverprofile=coverage.out -service travis-ci -repotoken $COVERALLS_TOKEN
after_success:
- gox -output "dist/{{.OS}}_{{.Arch}}_{{.Dir}}"
- ghr --username saymedia --token $GITHUB_TOKEN --replace --prerelease --debug pre-release dist/