Files
lnd.xprv/.travis.yml
T

42 lines
1.1 KiB
YAML
Raw Normal View History

2016-06-08 15:12:13 -07:00
language: go
2018-10-11 10:31:05 +02:00
cache:
directories:
- $GOCACHE
- $GOPATH/pkg/mod
2018-10-11 10:31:05 +02:00
- $GOPATH/src/github.com/btcsuite
- $GOPATH/src/github.com/golang
- $GOPATH/src/gopkg.in/alecthomas
2018-11-16 11:08:16 +01:00
go:
- "1.11.x"
env:
2018-10-11 10:31:05 +02:00
global:
- GOCACHE=$HOME/.go-build
2018-11-16 11:08:16 +01:00
matrix:
- RACE=true
2018-11-16 11:08:16 +01:00
- ITEST=true
- COVER=true
2018-10-11 10:31:05 +02:00
sudo: required
2016-07-25 16:39:22 -07:00
install:
- sudo add-apt-repository -y ppa:bitcoin/bitcoin -y
- sudo apt-get update -q
- sudo apt-get install bitcoind -y
2017-06-21 17:12:53 +03:00
- export PATH=$PATH:$PWD/linux-amd64/
2018-10-11 10:31:05 +02:00
2016-07-25 16:39:22 -07:00
script:
- export GO111MODULE=on
2018-10-11 10:31:05 +02:00
# Run unit tests with race condition detector.
- 'if [ "$RACE" = true ]; then make travis-race ; fi'
2018-10-11 10:31:05 +02:00
# Run integration tests.
- 'if [ "$ITEST" = true ]; then make itest; fi'
2018-10-11 10:31:05 +02:00
# Run unit tests and generate coverage report.
- 'if [ "$COVER" = true ]; then make travis-cover; fi'
2018-10-11 10:31:05 +02: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'