-
Notifications
You must be signed in to change notification settings - Fork 101
/
.travis.yml
34 lines (26 loc) · 1.08 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
language: go
go_import_path: github.com/gcash/bchd
go:
- "1.16.4"
services:
- docker
sudo: false
cache:
directories:
- $GOPATH/pkg/mod
- /home/travis/.cache/go-build
env:
- GO111MODULE=on
before_install:
- go get github.com/golangci/golangci-lint/cmd/golangci-lint
install:
- env GO111MODULE=on go build
- env GO111MODULE=on 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