Merge pull request #3794 from cfromknecht/stage-travis

travis: staged builds
This commit is contained in:
Conner Fromknecht 2019-12-05 15:34:01 -08:00 committed by GitHub
commit 8b3ee62366
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 27 deletions

@ -14,33 +14,29 @@ go:
env:
global:
- GOCACHE=$HOME/.go-build
matrix:
- RACE=true
- ITEST=true
- NEUTRINO_ITEST=true
- BITCOIND_ITEST=true
- COVER=true
sudo: required
script:
- export GO111MODULE=on
- bash ./scripts/install_bitcoind.sh
before_script: bash ./scripts/install_bitcoind.sh
# Run unit tests with race condition detector.
- 'if [ "$RACE" = true ]; then make travis-race ; fi'
# Run btcd integration tests.
- 'if [ "$ITEST" = true ]; then make travis-itest; fi'
# 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'
jobs:
include:
- stage: Build
script:
- make unit pkg=... case=_NONE_
- make lint
- make btcd
- stage: Test
script: make travis-cover
name: Unit Cover
- script: make travis-race
name: Unit Race
- script: make itest
name: Btcd Integration
- script: make itest backend=bitcoind
name: Bitcoind Integration
- script: make itest backend=neutrino
name: Neutrino Integration
after_script:
- LOG_FILES=./lntest/itest/*.log

@ -135,11 +135,9 @@ goveralls: $(GOVERALLS_BIN)
$(GOVERALLS_BIN) -coverprofile=coverage.txt -service=travis-ci
travis-race: lint btcd unit-race
travis-race: btcd unit-race
travis-cover: lint btcd unit-cover goveralls
travis-itest: lint itest
travis-cover: btcd unit-cover goveralls
# =============
# FLAKE HUNTING