From 690048cbef6beab333850d6f239e00e3254b8c68 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Sun, 13 Oct 2019 08:25:47 -0700 Subject: [PATCH] Add build vs watch scripts, tell drone to build_all_features. --- .drone.yml | 2 +- rtiow/build_all_features.sh | 9 +++++---- rtiow/watch_all_features.sh | 5 +++++ 3 files changed, 11 insertions(+), 5 deletions(-) create mode 100755 rtiow/watch_all_features.sh diff --git a/.drone.yml b/.drone.yml index 6bbcf93..5c856dd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,7 +13,7 @@ steps: commands: - sccache -s - apt-get update && apt-get install -y libgoogle-perftools-dev - - (cd rtiow && cargo build --verbose --all) + - (cd rtiow && ./build_all_features.sh) - (cd rtiow && cargo test --verbose --all) - sccache -s diff --git a/rtiow/build_all_features.sh b/rtiow/build_all_features.sh index a7f9d45..f4c1027 100755 --- a/rtiow/build_all_features.sh +++ b/rtiow/build_all_features.sh @@ -1,5 +1,6 @@ +set -e export RUSTFLAGS="-D warnings" -cargo watch -x 'build' \ - -x 'build --features=prom' \ - -x 'build --features=profile' \ - -x 'build --features=prom,profile' +cargo build +cargo build --features=prom +cargo build --features=profile +cargo build --features=prom,profile diff --git a/rtiow/watch_all_features.sh b/rtiow/watch_all_features.sh new file mode 100755 index 0000000..a7f9d45 --- /dev/null +++ b/rtiow/watch_all_features.sh @@ -0,0 +1,5 @@ +export RUSTFLAGS="-D warnings" +cargo watch -x 'build' \ + -x 'build --features=prom' \ + -x 'build --features=profile' \ + -x 'build --features=prom,profile'