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'