Skip to content

Commit 237b344

Browse files
committed
optimize process
1 parent 2a02442 commit 237b344

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

contract-tests/run-ci.sh

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
echo "start run-ci.sh"
44

5+
cd contract-tests
6+
7+
cd bittensor
8+
9+
rustup component add rust-src
10+
cargo install cargo-contract
11+
cargo contract build --release
12+
13+
cd ../..
14+
515
scripts/localnet.sh &>/dev/null &
616

717
i=1
@@ -28,14 +38,6 @@ fi
2838

2939
cd contract-tests
3040

31-
cd bittensor
32-
33-
rustup component add rust-src
34-
cargo install cargo-contract
35-
cargo contract build --release
36-
37-
cd ..
38-
3941
# required for papi in get-metadata.sh, but we cannot run yarn before papi as it adds the descriptors to the package.json which won't resolve
4042
npm i -g polkadot-api
4143

0 commit comments

Comments
 (0)