diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c8a4e9aa..a68c0289 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -255,63 +255,3 @@ jobs: with: path-to-profile: coverage.txt parallel: true - - ######################## - # run integration tests - ######################## - integration-test: - name: run integration tests - runs-on: ubuntu-latest - strategy: - # Allow other tests in the matrix to continue if one fails. - fail-fast: false - matrix: - backend: - - btcd - - bitcoind - - neutrino - steps: - - name: git checkout - uses: actions/checkout@v2 - - - name: go cache - uses: actions/cache@v1 - with: - path: /home/runner/work/go - key: lnd-${{ runner.os }}-go-${{ env.GO_VERSION }}-${{ github.job }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - lnd-${{ runner.os }}-go-${{ env.GO_VERSION }}-${{ github.job }}-${{ hashFiles('**/go.sum') }} - lnd-${{ runner.os }}-go-${{ env.GO_VERSION }}-${{ github.job }}- - lnd-${{ runner.os }}-go-${{ env.GO_VERSION }}- - lnd-${{ runner.os }}-go- - - - name: setup go ${{ env.GO_VERSION }} - uses: actions/setup-go@v2 - with: - go-version: '~${{ env.GO_VERSION }}' - - - name: bitcoin cache - uses: actions/cache@v1 - with: - path: /home/runner/bitcoin/bitcoin-${{ env.BITCOIN_VERSION }}/bin - key: lnd-${{ runner.os }}-bitcoin-${{ env.BITCOIN_VERSION }} - restore-keys: | - lnd-${{ runner.os }}-bitcoin-${{ env.BITCOIN_VERSION }} - - - name: install bitcoind - run: bash ./scripts/install_bitcoind.sh - if: matrix.backend == 'bitcoind' - - - name: ${{ matrix.backend }} integration - run: make itest backend=${{ matrix.backend }} - - - name: package logfiles - run: tar -zcvf itest-logs-${{ matrix.backend }}.tar.gz lntest/itest/*.log - if: failure() - - - name: upload logfiles - uses: actions/upload-artifact@v1 - if: failure() - with: - name: itest-logs-${{ matrix.backend }} - path: itest-logs-${{ matrix.backend }}.tar.gz diff --git a/.travis.yml b/.travis.yml index a3a1c0bc..0706e70a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,37 +26,22 @@ env: sudo: required -addons: - apt: - packages: - - clang-format - -before_script: - - bash ./scripts/install_travis_proto.sh - - bash ./scripts/install_bitcoind.sh - jobs: include: - - stage: Build - script: - - make rpc-check - - make unit pkg=... case=_NONE_ - - make lint workers=1 - - make btcd - - make release sys=windows-amd64 - - make mobile-rpc - - go build --tags="mobile" ./mobile - - stage: Test - script: make travis-cover - name: Unit Cover - - script: make travis-race - name: Unit Race - - script: make itest + - stage: Integration Test name: Btcd Integration - - script: make itest backend=bitcoind - name: Bitcoind Integration - - script: make itest backend=neutrino - name: Neutrino Integration + script: + - make itest + + - name: Bitcoind Integration + script: + - bash ./scripts/install_bitcoind.sh + - make itest backend=bitcoind + + - name: Neutrino Integration + script: + - make itest backend=neutrino + after_script: - LOG_FILES=./lntest/itest/*.log