-
Notifications
You must be signed in to change notification settings - Fork 36
/
.travis.yml
34 lines (28 loc) · 880 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
language: go
go:
- 1.11.x
- 1.12.x
- 1.13.x
env:
- GO111MODULE=on
before_install:
- go get github.com/mitchellh/gox
- go get github.com/mattn/goveralls
script:
- go test -v -covermode=count -coverprofile=coverage.out ./...
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then goveralls -coverprofile=coverage.out -service travis-ci -repotoken ${COVERALLS_TOKEN}; fi'
after_success:
- gox -osarch="darwin/amd64" -output "dist/{{.OS}}_{{.Arch}}_{{.Dir}}"
- gox -osarch="linux/amd64" -output "dist/{{.OS}}_{{.Arch}}_{{.Dir}}"
- gox -osarch="windows/amd64" -output "dist/{{.OS}}_{{.Arch}}_{{.Dir}}"
- gox -osarch="linux/arm" -output "dist/{{.OS}}_{{.Arch}}_{{.Dir}}"
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: dist/*
skip_cleanup: true
overwrite: true
on:
tags: true
condition: $TRAVIS_GO_VERSION =~ ^1\.13