travis: use make targets instead of chaining

This commit is contained in:
Conner Fromknecht 2018-11-30 15:20:46 -08:00
parent 3e0ca05740
commit 2c716095d5
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7

@ -29,13 +29,13 @@ script:
- export GO111MODULE=on - export GO111MODULE=on
# Run unit tests with race condition detector. # Run unit tests with race condition detector.
- 'if [ "$RACE" = true ]; then make btcd && make unit-race ; fi' - 'if [ "$RACE" = true ]; then make travis-race ; fi'
# Run integration tests. # Run integration tests.
- 'if [ "$ITEST" = true ]; then make btcd && make build && make itest-only; fi' - 'if [ "$ITEST" = true ]; then make itest; fi'
# Run unit tests and generate coverage report. # Run unit tests and generate coverage report.
- 'if [ "$COVER" = true ]; then make btcd && make lint && make unit-cover && make goveralls; fi' - 'if [ "$COVER" = true ]; then make travis-cover; 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'"