circleci: basic tests for all commits
This commit is contained in:
parent
52f4791779
commit
a8c42dc388
@ -2,9 +2,36 @@ version: 2.1
|
|||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
docker:
|
docker:
|
||||||
- image: cimg/go:1.16
|
- image: cimg/go:1.17.2
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
- run:
|
||||||
|
name: Prep env
|
||||||
|
command: |
|
||||||
|
mkdir -p /home/circleci/go/src
|
||||||
|
mkdir artifacts
|
||||||
|
go mod tidy
|
||||||
|
- run:
|
||||||
|
name: test rpc
|
||||||
|
command: go test ./rpc/
|
||||||
|
- run:
|
||||||
|
name: test eth
|
||||||
|
command: go test ./eth/
|
||||||
|
- run:
|
||||||
|
name: test eth/tracers
|
||||||
|
command: go test ./eth/tracers/
|
||||||
|
- run:
|
||||||
|
name: test core
|
||||||
|
command: go test ./core/
|
||||||
|
- run:
|
||||||
|
name: test core/vm
|
||||||
|
command: go test ./core/vm/
|
||||||
|
- run:
|
||||||
|
name: test core/state
|
||||||
|
command: go test ./core/state/
|
||||||
|
- run:
|
||||||
|
name: test core/rawdb
|
||||||
|
command: go test ./core/rawdb/
|
||||||
build_geth_push:
|
build_geth_push:
|
||||||
docker: # run the steps with Docker
|
docker: # run the steps with Docker
|
||||||
- image: cimg/go:1.17.2 # ...with this image as the primary container
|
- image: cimg/go:1.17.2 # ...with this image as the primary container
|
||||||
@ -17,7 +44,7 @@ jobs:
|
|||||||
command: |
|
command: |
|
||||||
mkdir -p /home/circleci/go/src
|
mkdir -p /home/circleci/go/src
|
||||||
mkdir artifacts
|
mkdir artifacts
|
||||||
go get
|
go mod tidy
|
||||||
- run:
|
- run:
|
||||||
name: build geth binaries
|
name: build geth binaries
|
||||||
command: |
|
command: |
|
||||||
@ -41,17 +68,20 @@ jobs:
|
|||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
|
test:
|
||||||
|
jobs:
|
||||||
|
- test:
|
||||||
|
filters:
|
||||||
|
tags:
|
||||||
|
ignore: /^v.*/
|
||||||
build_and_test:
|
build_and_test:
|
||||||
jobs:
|
jobs:
|
||||||
# - test:
|
- test:
|
||||||
# filters: # required since `deploy` has tag filters AND requires `build`
|
|
||||||
# tags:
|
|
||||||
# only: /.*/
|
|
||||||
- build_geth_push:
|
|
||||||
# requires:
|
|
||||||
# - test
|
|
||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
only: /^v.*/
|
only: /^v.*/
|
||||||
branches:
|
branches:
|
||||||
ignore: /.*/
|
ignore: /.*/
|
||||||
|
- build_geth_push:
|
||||||
|
requires:
|
||||||
|
- test
|
||||||
|
Loading…
Reference in New Issue
Block a user