-
Notifications
You must be signed in to change notification settings - Fork 29
/
.travis.yml
24 lines (18 loc) · 914 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
language: go
go:
- "1.16.4"
sudo: false
env:
- GO111MODULE=on
before_install:
- go get github.com/golangci/golangci-lint/cmd/golangci-lint
install:
- go install . ./cmd/...
script:
- export PATH=$PATH:$HOME/gopath/bin
- ./goclean.sh
after_script:
- if [ "$TRAVIS_GO_VERSION" = "1.16.4" ] && [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$TRAVIS_TAG" != "" ]; then go get github.com/inconshreveable/mousetrap; fi
- if [ "$TRAVIS_GO_VERSION" = "1.16.4" ] && [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$TRAVIS_TAG" != "" ]; then go get github.com/mitchellh/gox; fi
- if [ "$TRAVIS_GO_VERSION" = "1.16.4" ] && [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$TRAVIS_TAG" != "" ]; then go get github.com/tcnksm/ghr; fi
- if [ "$TRAVIS_GO_VERSION" = "1.16.4" ] && [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$TRAVIS_TAG" != "" ]; then make compile; ghr --username gcash --token $GITHUB_TOKEN --replace $TRAVIS_TAG pkg/; fi