Try update cargo deps when build fails in install-all script
@@ -6,21 +6,22 @@ cd gateway || exit
echo -e "\033[0;34mBuilding escrow pallets..."
cd pallet-escrow-gateway/escrow-engine && cargo build && cd ../..
-cd pallet-escrow-gateway/balances && cargo update && cargo build && cd ../..
-cd pallet-escrow-gateway && cargo update && cargo build && cd ..
+cd pallet-escrow-gateway/balances && cargo build || (cargo update && cargo build) || exit && cd ../..
+cd pallet-escrow-gateway && cargo build || (cargo update && cargo build) || exit && cd ..
echo -e "\033[0;32mTesting escrow pallets..."
-cd pallet-escrow-gateway/balances && cargo test && cd ../..
-cd pallet-escrow-gateway && cargo test && cd ..
+cd pallet-escrow-gateway/escrow-engine && cargo test; cd ../..
+cd pallet-escrow-gateway/balances && cargo test; cd ../..
+cd pallet-escrow-gateway && cargo test; cd ../
echo -e "\033[0;34mBuilding runtimes with escrow pallets..."
echo -e "\033[0;34mBuilding node-tiny..."
-cd node-tiny && cargo build && cd ..
+cd node-tiny && cargo build || (cargo update && cargo build) || exit && cd ..
echo -e "\033[0;34mBuilding node-full..."
-cd node-full/substrate && cargo build && cd ../..
+cd node-full/substrate && cargo build || (cargo update && cargo build) || exit && cd ../..
echo -e "\033[0;34mInstalling integration tests (JS)..."
-cd test-integration && npm install && cd ..
+cd test-integration && npm install || exit && cd ..
echo -e "\033[0;32mSo far so good. I will now run integration tests for both node-tiny & node-full by spinning up the nodes for 1 minute, executing test, exiting the node"
chmod +x run-node-full.sh
chmod +x run-node-tiny.sh
