Files
pezkuwi-subxt/substrate/ci/script.sh
T
Bastian Köcher 2332d6dd04 More dependency cleanup (#825)
* Removes `rlp` dependency

* Enable warnings about unused crates in the CI

* Remove all the unused crates

* Make tests working again
2018-09-27 17:52:51 +01:00

32 lines
641 B
Bash
Executable File

#!/usr/bin/env bash
set -eux
# Enable warnings about unused extern crates
export RUSTFLAGS=" -W unused-extern-crates"
# 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
;;
esac