-
Notifications
You must be signed in to change notification settings - Fork 71
/
.travis.yml
32 lines (30 loc) · 924 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
# another try!
# https://raw.githubusercontent.com/kofj/travis-golang/master/.travis.yml
language: go
go:
- 1.11.x
env:
- "PATH=/home/travis/gopath/bin:$PATH"
install:
- go get github.com/mitchellh/gox
- go get github.com/tcnksm/ghr
- go get -u golang.org/x/lint/golint
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover
- go get github.com/jteeuwen/go-bindata/...
- go get github.com/elazarl/go-bindata-assetfs/...
script:
- ./build.sh
before_deploy:
- gox -output "dist/{{.OS}}_{{.Arch}}_{{.Dir}}" -ldflags="-w"
deploy:
provider: releases
file_glob: true
api_key:
secure: HQCPUQJD8RmYYTzLmHW81mIS/veji+Kxkml23ik/lFx8pREOhJZi8NnI6asjvyQyHvNb2S8jwMxIJWF/IAoJp9dGEbV62hHPuEIHdl8Jhhwr4mbr0MVwsma7rjEFhnRchXkWHuUGDfv3jbp8BmRYg85cqZC8/WfNoJ0m8i24kz8=
file: "dist/*"
skip_cleanup: true
on:
tags: true
all_branches: true