From 6a36fe5fd5b8b500b7e8cc9825adf04e1307a937 Mon Sep 17 00:00:00 2001 From: Alex Helfet Date: Thu, 28 Dec 2017 04:05:47 +0000 Subject: [PATCH] Build scripts run bin/decode_typed, fix build. --- bin/build_local | 18 ++++++++++++------ bin/decode_typed | 3 +++ bin/travis/script | 24 ++++++++++++++++-------- 3 files changed, 31 insertions(+), 14 deletions(-) diff --git a/bin/build_local b/bin/build_local index 7f835b5..49d8b88 100755 --- a/bin/build_local +++ b/bin/build_local @@ -1,20 +1,26 @@ #!/usr/bin/env bash -set -ex +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 --verbose; - cargo +${tc} test --verbose --no-default-features; - cargo +${tc} test --verbose --no-default-features --features=typed; - cargo +${tc} test --verbose --features=trace; - cargo +${tc} doc --verbose --no-deps; + 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; diff --git a/bin/decode_typed b/bin/decode_typed index 7a604da..64d5ae8 100755 --- a/bin/decode_typed +++ b/bin/decode_typed @@ -23,7 +23,10 @@ export FRAMED_DECODE_DYNAMIC_RS="${TMP_DIR}/dynamic_${DECODE_TYPE_NAME}.rs"; cat > "${FRAMED_DECODE_DYNAMIC_RS}" <