-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (25 loc) · 1.32 KB
/
.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
language: go
os:
- linux
- osx
- windows
go:
- '1.14'
before_install:
- go get github.com/mattn/goveralls
- go get github.com/magefile/mage
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.24.0
script:
- go test ./... -covermode=count -coverprofile=profile.cov
- $GOPATH/bin/goveralls -coverprofile=profile.cov -service=travis-ci
- '[ "$TRAVIS_OS_NAME" == "windows" ] || mage lint'
deploy:
- provider: script
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true
condition: "$TRAVIS_OS_NAME = linux"
branch: main
env:
global:
secure: Pw9flMcwWYs+3dLT/Wk59v3FLvoAb3BBm75CFWCpsehJId0r10lzC/QFOzk3LJxTIysmxW6Xc04trk9pMgCygNdVRRtxk9+Zr1LXZfyyK9gwVLAbnN+EHgCfbBx8Xhvmu2TniuLrV3vQIg/reiCWBa/zM7YT3kzgAujonxCbiMHXH2EwqLb+BZz5QjfnTWyBY3Wx+7mi8zGS2+2Z6BZCtquplSW5SBkXNcpoDF+iPxS7XYPv3OhyU38dav30fIyM4ZL6m+MaEkC9mQLMzIqODfj0N/jZEQONawkVESAKf2RZos7YrFcGchcNkDBjy+7F7+PDv7lckjQgJDs11ZJRxr7LdxNCO521kRNsi+9wllp1TVRrUixxTzN46/O25hauLqqIaOQdYYsxUvy7CSkwTT8Q51jAHgBD/5Q5D5OdynHmfT/wMFOO6R0M+asTxwPorZlMUf/Cs9DWTR3paglvNA8LNkF2/cGBjE0mp/S27hlvX9F7qBCPKBD3rvUjDQf5LPCboYoYDqXjmUO2D8V3Nu26XjPoOmkVP2/aZ/PUkUdV+YsVwUUIOB4mvltLDjIzqtXRY/PrYBJfEgHKNpNDQEloTgjtG/63LbHovGAEtoEeSit5tkWlVCWRRSS82sksrKaiZxZHpic+wHDq4hO3U03pKuXngZbaRrjhmb9cLfw=