erigon-pulse/.circleci/config.yml
ledgerwatch 1a0e9275e1
Headers PoC - intermediate changes (#1016)
* First algorithm

* Update doc

* Second algorithm implemented

* Prepend (unfinished)

* More on prepend

* More fixes

* Change CalcDifficulty interface

* fix make test

* Fix formatting

* Another test

* More on Preprend

* Another test for Prepend

* More tests for Prepend

* More tests for Prepend

* Move files to turbo

* Add another test for Prepend

* Started adding Append algorithm

* More work on Append

* Start changing the terminology

* Split trees into segments

* More fixes

* Fix compilation

* Connect

* FindAnchors, FindTip

* Tip has anchor and not anchorParent field

* Remove Prepend and Append

* Add Connect

* NewAnchor algorithm

* More to recovery from files

* Add more to AddAnchor

* Request more headers

* Header fix-sizes serialisation

* Upgrade CI to 1.15

* Fix lint

* Fix lint

* replace RLP with fixed-sized serialisation

* Fix lint

* More algos

* Fix lint
2020-08-31 06:27:51 +01:00

66 lines
1.9 KiB
YAML

version: 2.1
jobs:
build:
docker:
- image: circleci/golang:1.15
resource_class: medium
working_directory: /go/src/github.com/ledgerwatch/turbo-geth
steps:
- run:
name: "Setup custom environment variables"
command: |
echo 'export GO111MODULE="on"' >> $BASH_ENV
echo 'export TEST_RESULTS="/tmp/test-results"' >> $BASH_ENV
source $BASH_ENV
- checkout
- run: mkdir -p ${TEST_RESULTS}
- run: go env
- run: git submodule update --init --recursive
- run: git submodule status semantics/z3 | awk '{ print $1 }' > /tmp/z3.version
- restore_cache:
keys:
- v1-pkg-cache-{{ arch }}-{{ checksum "go.sum" }}
- restore_cache:
keys:
- v1-z3-cache-{{ arch }}-{{ checksum "/tmp/z3.version" }}
- run: go mod tidy && test -z "$(git status --porcelain)"
- run: go mod download
- run: go mod verify
- run: go get github.com/jstemmer/go-junit-report
- run: make lintci-deps
- run:
name: Run extra linters
command: make lintci
no_output_timeout: 10m
- run: make
- run:
name: Run unit tests
command: |
trap "go-junit-report <${TEST_RESULTS}/go-test.out > ${TEST_RESULTS}/go-test-report.xml" EXIT
make test | tee ${TEST_RESULTS}/go-test.out
no_output_timeout: 10m
- save_cache:
key: v1-pkg-cache-{{ arch }}-{{ checksum "go.sum" }}
paths: "/go/pkg/mod"
- save_cache:
key: v1-z3-cache-{{ arch }}-{{ checksum "/tmp/z3.version" }}
paths: "/go/src/github.com/ledgerwatch/turbo-geth/semantics/z3/build"
- store_artifacts:
path: /tmp/test-results
destination: raw-test-output
- store_test_results:
path: /tmp/test-results