Skip to content

Commit

Permalink
Merge pull request lightningnetwork#3794 from cfromknecht/stage-travis
Browse files Browse the repository at this point in the history
travis: staged builds
  • Loading branch information
cfromknecht authored Dec 5, 2019
2 parents f3398c0 + d7af793 commit 8b3ee62
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 28 deletions.
44 changes: 20 additions & 24 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

# 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'
before_script: bash ./scripts/install_bitcoind.sh

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
Expand Down
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b3ee62

Please sign in to comment.