-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
10,540 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
version: 2.1 | ||
|
||
executors: | ||
machine_executor: | ||
machine: true | ||
working_directory: ~/repo | ||
|
||
commands: | ||
build-and-test: | ||
parameters: | ||
node-version: | ||
type: string | ||
default: "10.16.3" | ||
test-script: | ||
type: string | ||
default: "test-node" | ||
upgrade-chrome: | ||
type: string | ||
default: "" | ||
|
||
steps: | ||
- checkout | ||
|
||
- when: | ||
condition: << parameters.upgrade-chrome >> | ||
steps: | ||
- run: | ||
name: Upgrade chrome | ||
command: | | ||
sudo apt-get purge chromium-browser | ||
sudo apt-get update | ||
sudo apt-get install -y libappindicator1 fonts-liberation | ||
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | ||
sudo dpkg -i google-chrome*.deb | ||
google-chrome --version | ||
- run: | ||
name: Update gcc version | ||
command: | | ||
sudo add-apt-repository ppa:ubuntu-toolchain-r/test | ||
sudo apt update | ||
sudo apt install gcc-6 | ||
sudo apt install g++-6 | ||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6 | ||
- run: | ||
name: Prepare to run parity | ||
command: | | ||
mkdir -p /tmp/parity/keys | ||
cp -r admin/test-parity/parity-keys /tmp/parity/keys/DevelopmentChain | ||
cp admin/test-parity/parity-dev.* /tmp/parity | ||
chmod -R 777 /tmp/parity | ||
ls -la /tmp/parity | ||
- run: | ||
name: Starting Parity | ||
command: | | ||
docker run -d \ | ||
-p 8545:8545 \ | ||
-p 8546:8546 \ | ||
-p 30303:30303 \ | ||
-p 30303:30303/udp \ | ||
--name parity \ | ||
-v /tmp/parity:/home/parity/.local/share/io.parity.ethereum parity/parity:v2.4.8-stable \ | ||
--chain /home/parity/.local/share/io.parity.ethereum/parity-dev.json \ | ||
--unlock=0x7454a8F5a7c7555d79B172C89D20E1f4e4CC226C \ | ||
--password /home/parity/.local/share/io.parity.ethereum/parity-dev.pwds \ | ||
--min-gas-price 1000000000 \ | ||
--jsonrpc-interface all | ||
- run: | ||
name: Waiting for Parity to be ready | ||
command: | | ||
for i in `seq 1 20`; | ||
do | ||
nc -z localhost 8545 && echo Success && exit 0 | ||
echo -n . | ||
sleep 2 | ||
done | ||
docker ps -a | ||
docker logs parity | ||
echo Failed waiting for Parity && exit 1 | ||
- run: | ||
name: Run << parameters.test-script >> with node version << parameters.node-version >> | ||
command: | | ||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | ||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" | ||
nvm install << parameters.node-version >> | ||
node -v | ||
npm -v | ||
gcc --version | ||
npm ci | ||
npm run bootstrap | ||
npm run << parameters.test-script >> | ||
jobs: | ||
node-v8: | ||
description: "test with node version 8" | ||
executor: machine_executor | ||
steps: | ||
- build-and-test: | ||
node-version: "8.16.1" | ||
test-script: "test-node" | ||
|
||
node-v10: | ||
description: "test with node version 10" | ||
executor: machine_executor | ||
steps: | ||
- build-and-test: | ||
node-version: "10.16.3" | ||
test-script: "test-node" | ||
|
||
node-v12: | ||
description: "test with node version 12" | ||
executor: machine_executor | ||
steps: | ||
- build-and-test: | ||
node-version: "12.13.1" | ||
test-script: "test-node" | ||
|
||
browser-esm: | ||
description: "test browser with es6 module" | ||
executor: machine_executor | ||
steps: | ||
- build-and-test: | ||
node-version: "12.13.1" | ||
test-script: "test-browser-esm" | ||
upgrade-chrome: "true" | ||
|
||
browser-umd: | ||
description: "test browser with es3 module" | ||
executor: machine_executor | ||
steps: | ||
- build-and-test: | ||
node-version: "12.13.1" | ||
test-script: "test-browser-umd" | ||
|
||
|
||
workflows: | ||
version: 2 | ||
all: | ||
jobs: | ||
- node-v8 | ||
- node-v10 | ||
- node-v12 | ||
- browser-esm | ||
- browser-umd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"name": "DevelopmentChain", | ||
"engine": { | ||
"instantSeal": null | ||
}, | ||
"params": { | ||
"gasLimitBoundDivisor": "0x0400", | ||
"accountStartNonce": "0x0", | ||
"maximumExtraDataSize": "0x20", | ||
"minGasLimit": "0x1388", | ||
"networkID" : "0x11", | ||
"registrar" : "0x0000000000000000000000000000000000001337", | ||
"maxCodeSize": 24576, | ||
"maxCodeSizeTransition": "0x0", | ||
"eip98Transition": "0x7fffffffffffff", | ||
"eip140Transition": "0x0", | ||
"eip145Transition": "0x0", | ||
"eip150Transition": "0x0", | ||
"eip155Transition": "0x0", | ||
"eip160Transition": "0x0", | ||
"eip161abcTransition": "0x0", | ||
"eip161dTransition": "0x0", | ||
"eip211Transition": "0x0", | ||
"eip214Transition": "0x0", | ||
"eip658Transition": "0x0", | ||
"wasmActivationTransition": "0x0" | ||
}, | ||
"genesis": { | ||
"seal": { | ||
"generic": "0x0" | ||
}, | ||
"difficulty": "0x20000", | ||
"author": "0x0000000000000000000000000000000000000000", | ||
"timestamp": "0x00", | ||
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
"extraData": "0x", | ||
"gasLimit": "0x7A1200" | ||
}, | ||
"accounts": { | ||
"0000000000000000000000000000000000000001": { "balance": "1", "builtin": { "name": "ecrecover", "pricing": { "linear": { "base": 3000, "word": 0 } } } }, | ||
"0000000000000000000000000000000000000002": { "balance": "1", "builtin": { "name": "sha256", "pricing": { "linear": { "base": 60, "word": 12 } } } }, | ||
"0000000000000000000000000000000000000003": { "balance": "1", "builtin": { "name": "ripemd160", "pricing": { "linear": { "base": 600, "word": 120 } } } }, | ||
"0000000000000000000000000000000000000004": { "balance": "1", "builtin": { "name": "identity", "pricing": { "linear": { "base": 15, "word": 3 } } } }, | ||
"0000000000000000000000000000000000000005": { "balance": "1", "builtin": { "name": "modexp", "activate_at": 0, "pricing": { "modexp": { "divisor": 20 } } } }, | ||
"0000000000000000000000000000000000000006": { "balance": "1", "builtin": { "name": "alt_bn128_add", "activate_at": 0, "pricing": { "linear": { "base": 500, "word": 0 } } } }, | ||
"0000000000000000000000000000000000000007": { "balance": "1", "builtin": { "name": "alt_bn128_mul", "activate_at": 0, "pricing": { "linear": { "base": 40000, "word": 0 } } } }, | ||
"0000000000000000000000000000000000000008": { "balance": "1", "builtin": { "name": "alt_bn128_pairing", "activate_at": 0, "pricing": { "alt_bn128_pairing": { "base": 100000, "pair": 80000 } } } }, | ||
"0x7454a8f5a7c7555d79b172c89d20e1f4e4cc226c": { "balance": "1606938044258990275541962092341162602522202993782792835301376" } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
1 change: 1 addition & 0 deletions
1
...n/test-parity/parity-keys/UTC--2019-06-25T00-14-25Z--24d70b97-fff9-d322-e760-4b8cc2e21751
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"id":"24d70b97-fff9-d322-e760-4b8cc2e21751","version":3,"crypto":{"cipher":"aes-128-ctr","cipherparams":{"iv":"45d392cd16dbbd5c0f5b2d145c112da9"},"ciphertext":"b001ccd09fc5431dc055975b58ee61f86e85529245506c04182c902716e750e5","kdf":"pbkdf2","kdfparams":{"c":10240,"dklen":32,"prf":"hmac-sha256","salt":"028594da27a0e864105f33b912e5dc6ce7c75ecd13c81bfc158fe963d30c93bb"},"mac":"374bf2e9144b74b889708abc19e9ebc164f90bc27e83fd9f01da4571a9f81a70"},"address":"7454a8f5a7c7555d79b172c89d20e1f4e4cc226c","name":"","meta":"{}"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.