1
Fork 0
framed-rs/bin/build_local
2017-12-28 04:10:10 +00:00

26 lines
773 B
Bash
Executable file

#!/usr/bin/env bash
set -ex;
# A simple build script to run locally before pushing.
script_dir=$( cd $(dirname ${BASH_SOURCE[0]}); pwd )
repo_dir=${script_dir}/..
cd ${repo_dir};
for tc in nightly stable beta; do
echo "Toolchain: ${tc}";
rustup toolchain update ${tc};
export CARGO_TARGET_DIR="${repo_dir}/target/build_local/${tc}"
cargo +${tc} test -p framed --verbose;
cargo +${tc} test -p framed --verbose --no-default-features;
cargo +${tc} test -p framed --verbose --no-default-features --features=typed;
cargo +${tc} test -p framed --verbose --features=trace;
cargo +${tc} doc -p framed --verbose --no-deps;
done
DECODE_TYPE_CRATE_DIR=test_type \
DECODE_TYPE_NAME=framed_test_type::Test \
bin/decode_typed < /dev/null;