2019-03-07 09:19:27 +00:00
|
|
|
language: go
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $GOCACHE
|
|
|
|
- $GOPATH/pkg/mod
|
|
|
|
- $GOPATH/src/github.com/btcsuite
|
|
|
|
- $GOPATH/src/github.com/golang
|
|
|
|
- $GOPATH/src/gopkg.in/alecthomas
|
|
|
|
|
2020-05-04 11:56:38 +00:00
|
|
|
# Remove Travis' default flag --depth=50 from the git clone command to make sure
|
|
|
|
# we have the whole git history, including the commit we lint against.
|
|
|
|
git:
|
|
|
|
depth: false
|
|
|
|
|
2019-03-07 09:19:27 +00:00
|
|
|
go:
|
2021-04-20 09:50:41 +00:00
|
|
|
- "1.15.x"
|
2019-03-07 09:19:27 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- GOCACHE=$HOME/.go-build
|
|
|
|
|
|
|
|
sudo: required
|
|
|
|
|
|
|
|
script:
|
|
|
|
- export GO111MODULE=on
|
2021-08-03 11:19:44 +00:00
|
|
|
- make lint unit build mod-check rpc-js-compile
|
2020-10-15 11:49:05 +00:00
|
|
|
- make tags=dev
|
2019-03-07 09:19:27 +00:00
|
|
|
|
|
|
|
after_script:
|
|
|
|
- echo "Uploading to termbin.com..." && find *.log | xargs -I{} sh -c "cat {} | nc termbin.com 9999 | xargs -r0 printf '{} uploaded to %s'"
|
|
|
|
- echo "Uploading to file.io..." && tar -zcvO *.log | curl -s -F 'file=@-;filename=logs.tar.gz' https://file.io | xargs -r0 printf 'logs.tar.gz uploaded to %s\n'
|