From b9a9b4087b5fc301ce6124803d4228dcc7e41f89 Mon Sep 17 00:00:00 2001 From: Jianrong Date: Thu, 26 Aug 2021 19:52:14 +1000 Subject: [PATCH] split the tests to run in multiple pipes --- .travis.yml | 49 +++++++++++++++++++++++++++++++++++++------------ 1 file changed, 37 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index f14b60ed92..a9f2325923 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,22 +15,47 @@ jobs: script: - go run build/ci.go lint - - stage: build + - stage: test A-B packages os: linux dist: bionic go: 1.15.x env: - GO111MODULE=auto script: - - go run build/ci.go test -coverage $TEST_PACKAGES + - go run build/ci.go test -coverage $(go list ./... | grep "github.com\/ethereum\/go-ethereum\/[a-b].*") - # These builders run the tests - # - stage: build - # os: linux - # arch: amd64 - # dist: bionic - # go: 1.16.x - # env: - # - GO111MODULE=auto - # script: - # - go run build/ci.go test -coverage $TEST_PACKAGES \ No newline at end of file + - stage: test C packages + os: linux + dist: bionic + go: 1.15.x + env: + - GO111MODULE=auto + script: + - go run build/ci.go test -coverage $(go list ./... | grep "github.com\/ethereum\/go-ethereum\/[c].*") + + - stage: test D-N packages + os: linux + dist: bionic + go: 1.15.x + env: + - GO111MODULE=auto + script: + - go run build/ci.go test -coverage $(go list ./... | grep "github.com\/ethereum\/go-ethereum\/[d-n].*") + + - stage: test O-R packages + os: linux + dist: bionic + go: 1.15.x + env: + - GO111MODULE=auto + script: + - go run build/ci.go test -coverage $(go list ./... | grep "github.com\/ethereum\/go-ethereum\/[o-r].*") + + - stage: test S-Z packages + os: linux + dist: bionic + go: 1.15.x + env: + - GO111MODULE=auto + script: + - go run build/ci.go test -coverage $(go list ./... | grep "github.com\/ethereum\/go-ethereum\/[s-z].*") \ No newline at end of file