@@ -43,10 +43,10 @@ jobs:
4343 steps :
4444 - restore_cache :
4545 keys :
46- - deps6 -{{ .Branch }}-{{ .Revision }}
47- # - deps6 -{{ .Branch }}-cargo-{{ checksum "kernel-ewasm/Cargo.lock" }}
48- - deps6 -{{ .Branch }}-
49- - deps6 -
46+ - deps7 -{{ .Branch }}-{{ .Revision }}
47+ # - deps7 -{{ .Branch }}-cargo-{{ checksum "kernel-ewasm/Cargo.lock" }}
48+ - deps7 -{{ .Branch }}-
49+ - deps7 -
5050 - run :
5151 name : Install native build prequisites
5252 command : |
9696 # cargo build --verbose --release --features final
9797 # strip target/debug/parity
9898 # file target/debug/parity
99- cargo install --bin parity -j 1 --path . --bin parity parity-ethereum --force
99+ if parity --version; then
100+ echo "Parity node installed"
101+ else
102+ cargo install --bin parity -j 1 --path . --bin parity parity-ethereum
103+ fi
100104 - save_cache :
101- key : deps6 -{{ .Branch }}-cargo # -{{ checksum "kernel-ewasm/Cargo.lock" }}
105+ key : deps7 -{{ .Branch }}-cargo # -{{ checksum "kernel-ewasm/Cargo.lock" }}
102106 paths :
103107 - " ~/.cargo"
104108 - " ~/.rustup"
@@ -118,7 +122,7 @@ jobs:
118122 cd kernel-ewasm
119123 # we need to run parity once to set up the accounts and keys
120124 # this only needs to be active for a few seconds (hence timeout)
121- timeout 5 parity --config dev || true
125+ # timeout 5 parity --config dev || true
122126 # We then run parity properly, now unlocking the previously setup
123127 # account
124128 parity --config dev --chain ./wasm-dev-chain.json --jsonrpc-apis=all --ws-apis=all --reseal-min-period 0 --gasprice 0
@@ -135,6 +139,7 @@ jobs:
135139 - run :
136140 name : Test Rust Component
137141 command : |
142+ . ~/.profile
138143 cd cap9
139144 cd kernel-ewasm && npm install
140145 npm run test
0 commit comments