From e553d2b112677ed89ec32c78f94565880b3e59ab Mon Sep 17 00:00:00 2001 From: Alex Helfet Date: Sat, 17 Mar 2018 16:26:18 +0000 Subject: [PATCH] build scripts run a xargo build with a no_std target. --- .travis.yml | 5 +++++ bin/build_tc | 15 +++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/.travis.yml b/.travis.yml index e487085..c1bc3bf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,9 @@ rust: - nightly cache: cargo +addons: + apt: + packages: + - jq + script: bin/travis/script diff --git a/bin/build_tc b/bin/build_tc index d426117..0e93578 100755 --- a/bin/build_tc +++ b/bin/build_tc @@ -11,6 +11,7 @@ export CARGO_TARGET_DIR="${REPO_DIR}/target/build_local/${TC}" set -x; +rustup self update; rustup toolchain update ${TC}; cd ${REPO_DIR}/framed; @@ -23,6 +24,20 @@ if [[ "${TC}" == "nightly" ]]; then cargo +${TC} test -p framed --verbose --lib \ --no-default-features --features=use_nightly; + # xargo arm build + rustup component add rust-src --toolchain ${TC}; + xargo_latest=$(curl https://crates.io/api/v1/crates/xargo \ + | jq '.versions|sort_by(.created_at)|last|.num' -r); + if cargo +${TC} install --list | egrep --no-messages --quiet "xargo v${xargo_latest}"; then + echo "xargo version already latest." + else + cargo +${TC} install --verbose --force xargo; + fi + + rustup run ${TC} xargo build --verbose --lib \ + --target thumbv7em-none-eabihf \ + --no-default-features --features=use_nightly; + # doc tests require nightly cargo +${TC} test -p framed --verbose --doc \ --features=use_nightly;