build: inline travis btcd build

This commit is contained in:
Olaoluwa Osuntokun 2018-11-30 14:01:53 -08:00
parent 24ab9970bf
commit 0734e53260
No known key found for this signature in database
GPG Key ID: CE58F7F8E20FD9A2

View File

@ -1,7 +1,6 @@
language: go language: go
cache: cache:
directories: directories:
- vendor/
- $GOCACHE - $GOCACHE
- $GOPATH/pkg/mod - $GOPATH/pkg/mod
- $GOPATH/src/github.com/btcsuite - $GOPATH/src/github.com/btcsuite
@ -29,17 +28,14 @@ install:
script: script:
- export GO111MODULE=on - export GO111MODULE=on
# Common for all builds.
- make btcd
# Run unit tests with race condition detector. # Run unit tests with race condition detector.
- 'if [ "$RACE" = true ]; then make unit-race ; fi' - 'if [ "$RACE" = true ]; then make btcd && make unit-race ; fi'
# Run integration tests. # Run integration tests.
- 'if [ "$ITEST" = true ]; then make build && make itest-only; fi' - 'if [ "$ITEST" = true ]; then make btcd && make build && make itest-only; fi'
# Run unit tests and generate coverage report. # Run unit tests and generate coverage report.
- 'if [ "$COVER" = true ]; then make lint && make unit-cover && make goveralls; fi' - 'if [ "$COVER" = true ]; then make btcd && make lint && make unit-cover && make goveralls; fi'
after_script: 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 termbin.com..." && find *.log | xargs -I{} sh -c "cat {} | nc termbin.com 9999 | xargs -r0 printf '{} uploaded to %s'"