Files
pezkuwi-subxt/polkadot/ci/script.sh
T
Pierre Krieger a5b2c9ab34 Require --locked on CI for WASM runtime locks (#285)
* Require --locked on CI for WASM runtime locks

* Update runtime Cargo.lock

* Add quotes
2019-06-11 22:01:26 +02:00

29 lines
570 B
Bash
Executable File

#!/usr/bin/env bash
set -eux
# Install rustup and the specified rust toolchain.
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=$RUST_TOOLCHAIN -y
# Load cargo environment. Specifically, put cargo into PATH.
source ~/.cargo/env
rustc --version
rustup --version
cargo --version
case $TARGET in
"native")
sudo apt-get -y update
sudo apt-get install -y cmake pkg-config libssl-dev
cargo test --all --locked "$@"
;;
"wasm")
# Install prerequisites and build all wasm projects
./scripts/init.sh
./scripts/build.sh --locked "$@"
;;
esac