Skip to content

Commit

Permalink
added whiteblock config/script (#11)
Browse files Browse the repository at this point in the history
* added whiteblock config/script

* specified etcclassic blockchain

* spelling errors

* corrected biome id

* corrected biome id

* change flag to p0

* explicitly set API_URL to whiteblock

* change spacing from tabs

* change spacing from tabs

* removed explicit API_URL declaration

* add fingerprint to pull from script repo

* update CI image to have yarn

* update whiteblock script to match testing script expected args

* remove branch checkout

* correct method of feeding private key into script

* update flags, specify rpc port

* fixed pulling private key from whiteblock

* updated rpcurl

* check for funded account attached to pk

* don't terminate nodes

* why does this work sshed into the container

* script wasn't working because ./wb get account info only gets information for latest node

* don't force sh

* bash

* wb is same level

* renamed script

* renamed script

* stop circleci timing out until DAG can be generated

* change name of whiteblock-test

Co-Authored-By: Talha Cross <[email protected]>

* add linux tests to required for release

Co-Authored-By: meowsbits <[email protected]>

* add new whiteblock test name to release jobs

* added whiteblock config/script

* specified etcclassic blockchain

* spelling errors

* corrected biome id

* corrected biome id

* change flag to p0

* explicitly set API_URL to whiteblock

* change spacing from tabs

* change spacing from tabs

* removed explicit API_URL declaration

* add fingerprint to pull from script repo

* update CI image to have yarn

* update whiteblock script to match testing script expected args

* remove branch checkout

* correct method of feeding private key into script

* update flags, specify rpc port

* fixed pulling private key from whiteblock

* updated rpcurl

* check for funded account attached to pk

* don't terminate nodes

* why does this work sshed into the container

* script wasn't working because ./wb get account info only gets information for latest node

* don't force sh

* bash

* wb is same level

* renamed script

* renamed script

* stop circleci timing out until DAG can be generated

* change name of whiteblock-test

Co-Authored-By: Talha Cross <[email protected]>

* add linux tests to required for release

Co-Authored-By: meowsbits <[email protected]>

* add new whiteblock test name to release jobs
  • Loading branch information
steviezhang authored Sep 20, 2019
1 parent b06bd5c commit b485f00
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,18 @@ jobs:
key: go-mod-v4-{{ checksum "go.sum" }}
paths:
- "/go/pkg/mod"
test-whiteblock-go-1.12:
working_directory: ~/go-ethereum
docker:
- image: circleci/golang:1.12-node
steps:
- checkout
- add_ssh_keys:
fingerprints:
- "66:fe:0a:cc:20:fb:80:7d:79:ed:72:4a:99:20:b3:0c"
- run:
name: Execute whiteblock tests
command: bash ./scripts/whiteblock.sh ${WB_JWT} ${CIRCLE_BRANCH}
release-linux-go-1.12:
working_directory: ~/go-ethereum
docker:
Expand Down Expand Up @@ -186,6 +198,7 @@ workflows:
version: 2
release:
jobs:
- test-whiteblock-go-1.12
- build-linux-go-1.12:
filters:
tags:
Expand All @@ -203,10 +216,11 @@ workflows:
- build-linux-go-1.12
filters:
tags:
only: /.*/
only: /.*/
- release-linux-go-1.12:
requires:
- tests-linux-go-1.12
- test-whiteblock-go-1.12
filters:
tags:
only: /^v.*/
Expand Down
33 changes: 33 additions & 0 deletions scripts/whiteblock.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash

set -ev

JWT=$1
BRANCH=$2

curl 'https://storage.googleapis.com/genesis-public/cli/dev/bin/linux/amd64/whiteblock' --output ./wb
chmod +x ./wb

./wb login $JWT 2265

echo "building gethc node..."
./wb build -b ethclassic --git-repo https://github.com/etclabscore/go-ethereum.git --git-repo-branch development -n 1 -m 0 -c 0 -y -p0=8570:8545

echo "getting private key for funded account"
PK=0x$(./wb get account info | jq '.[].privateKey' | tr -d '"')
PKS=( $PK )

echo "building parity node..."
./wb build append -b parity -n 1 -m 0 -c 0 -y -p0=8571:8545

./wb miner start

echo "pulling latest testing script from github..."
git clone https://github.com/ChainSafe/Anemone.git
cd ./Anemone
git fetch origin
git checkout origin/stephanie/whiteblockChainID
yarn install

echo "running script"
yarn start --pk $PKS --rpcport http://wbm-greg.boxes.whiteblock.io:8570

0 comments on commit b485f00

Please sign in to comment.