forked from sensu/sensu-slack-handler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (31 loc) · 1.64 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
32
33
34
35
language: go
go:
- 1.10.x
install:
- go get gopkg.in/alecthomas/gometalinter.v1
- go get github.com/gordonklaus/ineffassign
- go get github.com/jgautheron/goconst/cmd/goconst
- go get github.com/kisielk/errcheck
- go get github.com/golang/dep/cmd/dep
- dep ensure
script:
- gometalinter.v1 --vendor --disable-all --enable=vet --enable=ineffassign
--enable=goconst --tests ./...
- go test -v -race ./...
before_script:
- echo "REPO $TRAVIS_REPO_SLUG TAG ${TRAVIS_TAG}"
deploy:
- #goreleaser
provider: script
script: curl -sL https://git.io/goreleaser | bash
skip_cleanup: true
on:
tags: true
condition: $TRAVIS_OS_NAME = linux
after_deploy:
- git clone https://github.com/sensu/sensu-go-bonsai-asset.git bonsai
- bonsai/generate-sha512sum.sh
- bonsai/github-release-upload.sh github_api_token=$GITHUB_TOKEN repo_slug="$TRAVIS_REPO_SLUG" tag="${TRAVIS_TAG}" filename="dist/$(cat dist/sha512_file)"
env:
global:
secure: AAAAB3NzaC1yc2EAAAADAQABAAACAQDd8VD1c3Mno+WzqOC/4a59ersotUdAqOsQCdql8eVDlv49PWkFEUh/cKVmhnooGO68O+Qt3dcP7uqEo2DZtgxfTshd0JpT/IV6KLGqJbg8VWIbikY4AIlNZEov4PDjvGsyRogYfxbx5F71pr5TiYbvkyN4qYDZKJMmqfD1VcA5FYXrLg18SR3fuly+thfIQtD8yv9rHTMfk9KfcwoNbyLgmU28U6ZUHm0tz6x+UN9LT39oCSZAp3MvyLZvEmFZhyzSnfylhTzICi05F1gpPzD0CAvLHbtPGse7igXu1fupNEuM9f01g+uY/gsHNuxcgL026RcMd5EYvbr0F8chVrrZRTc7Emgd2QSqVGWZb0jVnIAF09FsIzHgt2nSQRkkEhNP80skOiDi3VthQ8b4XWO4hJ4bTm1C6DQGUN80Y8xtlNFYpHBA7GNV+zwIoTOGSb0vKP/786cVHx2E+hYZkP+03QXdv0zyeXevCS6s4TSKGyHv9apRg+6JZ1nGm6f1MPHB5OLEf582xi5RAkKtFGpKxDHyTv1KhcySzgOvbQTW488O2jPMUuTHAevp6HQvyOFe2OMYIyhu1xMK5rTBKzRMwMG8WH8Yf+9WqBJf2mmgqPuAX16KyXao9x/iyaFD9VnVyINqxxCO+LiTFGPvOU6uUNGm3Tm+HznOo7s13ueVEQ==