Merge pull request #3794 from cfromknecht/stage-travis

travis: staged builds
This commit is contained in:
Conner Fromknecht authored and GitHub committed 2019-12-05 15:34:01 -08:00
commit 8b3ee62366
2 files changed
+21 -27

No files matched your search

+19 -23
View File
@@ -14,33 +14,29 @@ go:
env: env:
global: global:
- GOCACHE=$HOME/.go-build - GOCACHE=$HOME/.go-build
matrix:
- RACE=true
- ITEST=true
- NEUTRINO_ITEST=true
- BITCOIND_ITEST=true
- COVER=true
sudo: required sudo: required
script: before_script: bash ./scripts/install_bitcoind.sh
- export GO111MODULE=on
- bash ./scripts/install_bitcoind.sh
# Run unit tests with race condition detector. jobs:
- 'if [ "$RACE" = true ]; then make travis-race ; fi' include:
- stage: Build
# Run btcd integration tests. script:
- 'if [ "$ITEST" = true ]; then make travis-itest; fi' - make unit pkg=... case=_NONE_
- make lint
# Run neutrino integration tests. - make btcd
- 'if [ "$NEUTRINO_ITEST" = true ]; then make travis-itest backend=neutrino; fi' - stage: Test
script: make travis-cover
# Run bitcoind integration tests. name: Unit Cover
- 'if [ "$BITCOIND_ITEST" = true ]; then make travis-itest backend=bitcoind; fi' - script: make travis-race
name: Unit Race
# Run unit tests and generate coverage report. - script: make itest
- 'if [ "$COVER" = true ]; then make travis-cover; fi' name: Btcd Integration
- script: make itest backend=bitcoind
name: Bitcoind Integration
- script: make itest backend=neutrino
name: Neutrino Integration
after_script: after_script:
- LOG_FILES=./lntest/itest/*.log - LOG_FILES=./lntest/itest/*.log
+2 -4
View File
@@ -135,11 +135,9 @@ goveralls: $(GOVERALLS_BIN)
$(GOVERALLS_BIN) -coverprofile=coverage.txt -service=travis-ci $(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-cover: btcd unit-cover goveralls
travis-itest: lint itest
# ============= # =============
# FLAKE HUNTING # FLAKE HUNTING