From 44d7050ba107ea2b19135bf1ba2c6ea41cb9655c Mon Sep 17 00:00:00 2001 From: olumuyiwadad Date: Mon, 27 Sep 2021 11:32:44 +0530 Subject: [PATCH] update tests. --- .travis.yml | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 65 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6c4714bdd2..7697f7e1f6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,7 +19,7 @@ jobs: script: - go run build/ci.go lint - - stage: Build and test + - stage: Build go: '1.14.x' script: - sudo modprobe fuse @@ -32,6 +32,70 @@ jobs: after_success: - bash <(curl -s https://codecov.io/bash) + - stage: Tests + os: linux + dist: bionic + go: 1.14.x + env: + - GO111MODULE=auto + name: A-B tests + script: travis_retry go run build/ci.go test -coverage $(go list ./... | grep "github.com\/XinFinOrg\/XDPoSChain\/[a-b].*") + - script: travis_retry go run build/ci.go test -coverage $(go list ./... | grep "github.com\/XinFinOrg\/XDPoSChain\/c[a-m].*") + os: linux + dist: bionic + go: 1.14.x + env: + - GO111MODULE=auto + name: C-[a-m] tests + - script: travis_retry go run build/ci.go test -coverage $(go list ./... | grep "github.com\/XinFinOrg\/XDPoSChain\/c[n-o].*") + os: linux + dist: bionic + go: 1.14.x + env: + - GO111MODULE=auto + name: C-[n-o] tests + - script: travis_retry go run build/ci.go test -coverage $(go list ./... | grep "github.com\/XinFinOrg\/XDPoSChain\/c[p-z].*") + os: linux + dist: bionic + go: 1.14.x + env: + - GO111MODULE=auto + name: C-[p-z] tests + - script: travis_retry go run build/ci.go test -coverage $(go list ./... | grep "github.com\/XinFinOrg\/XDPoSChain\/[d-i].*") + os: linux + dist: bionic + go: 1.14.x + env: + - GO111MODULE=auto + name: D-I tests + - script: travis_retry go run build/ci.go test -coverage $(go list ./... | grep "github.com\/XinFinOrg\/XDPoSChain\/[j-n].*") + os: linux + dist: bionic + go: 1.14.x + env: + - GO111MODULE=auto + name: J-N tests + - script: travis_retry go run build/ci.go test -coverage $(go list ./... | grep "github.com\/XinFinOrg\/XDPoSChain\/[o-r].*") + os: linux + dist: bionic + go: 1.14.x + env: + - GO111MODULE=auto + name: O-R tests + - script: travis_retry go run build/ci.go test -v -coverage $(go list ./... | grep "github.com\/XinFinOrg\/XDPoSChain\/s.*") + os: linux + dist: bionic + go: 1.14.x + env: + - GO111MODULE=auto + name: S tests + - script: travis_retry go run build/ci.go test -coverage $(go list ./... | grep "github.com\/XinFinOrg\/XDPoSChain\/[t-z].*") + os: linux + dist: bionic + go: 1.14.x + env: + - GO111MODULE=auto + name: T-Z tests - stage: Github release go: '1.14.x' script: