-
Notifications
You must be signed in to change notification settings - Fork 67
/
.travis.yml
32 lines (31 loc) · 960 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
language: go
go:
- tip
- '1.14'
- '1.13'
- '1.12'
env:
- PATH=$HOME/gopath/bin:$PATH
before_install:
- go get github.com/mitchellh/gox
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover;
fi
script:
- "./run_tests.sh"
- goveralls -coverprofile=coverage.out -service travis-ci -repotoken $COVERALLS_TOKEN
- gox -os="linux darwin windows" -arch="amd64" -output="bin/{{.Dir}}_{{.OS}}_{{.Arch}}"
-ldflags "-X main.Rev=`git rev-parse --short HEAD`" -verbose ./...
deploy:
provider: releases
api_key:
secure: L8wTBDS3zQO+pniwKEiF6yKzCQ24GMG7Z/O2BIBoHtUW1oXOFkB2BXxvtPFOnHaSFX72hrXSvt1vz7Ijotz9KRO0y6PQD35diycVvPuSbbnU9p9VGhet1OYI3dGphxZPwyT1KYEe3vP8yxhP491JKsnuOVe53jwMZil75BogO8c=
file:
- bin/wol_darwin_amd64
- bin/wol_linux_amd64
- bin/wol_windows_amd64.exe
skip_cleanup: true
on:
repo: sabhiram/go-wol
tags: true