lnd.xprv/.travis.yml

49 lines
1.4 KiB
YAML
Raw Normal View History

2016-06-09 01:12:13 +03:00
language: go
cache:
directories:
- ~/bitcoin/bitcoin-0.18.0/bin
- $GOCACHE
- $GOPATH/pkg/mod
- $GOPATH/src/github.com/btcsuite
- $GOPATH/src/github.com/golang
- $GOPATH/src/gopkg.in/alecthomas
go:
2019-02-26 18:19:00 +03:00
- "1.12.x"
env:
global:
- GOCACHE=$HOME/.go-build
matrix:
- RACE=true
- ITEST=true
2019-05-24 15:17:49 +03:00
- NEUTRINO_ITEST=true
- BITCOIND_ITEST=true
- COVER=true
sudo: required
script:
- export GO111MODULE=on
- bash ./scripts/install_bitcoind.sh
# Run unit tests with race condition detector.
- 'if [ "$RACE" = true ]; then make travis-race ; fi'
2019-05-24 15:17:49 +03:00
# Run btcd integration tests.
- 'if [ "$ITEST" = true ]; then make travis-itest; fi'
2019-05-24 15:17:49 +03:00
# Run neutrino integration tests.
- 'if [ "$NEUTRINO_ITEST" = true ]; then make travis-itest backend=neutrino; fi'
# Run bitcoind integration tests.
- 'if [ "$BITCOIND_ITEST" = true ]; then make travis-itest backend=bitcoind; fi'
# Run unit tests and generate coverage report.
- 'if [ "$COVER" = true ]; then make travis-cover; fi'
after_script:
- LOG_FILES=./lntest/itest/*.log
- echo "Uploading to termbin.com..." && find $LOG_FILES | xargs -I{} sh -c "cat {} | nc termbin.com 9999 | xargs -r0 printf '{} uploaded to %s'"
- echo "Uploading to file.io..." && tar -zcvO $LOG_FILES | curl -s -F 'file=@-;filename=logs.tar.gz' https://file.io | xargs -r0 printf 'logs.tar.gz uploaded to %s\n'