Add auditing to the first build stage
@@ -36,15 +36,16 @@ install:
make install
cd ..
fi
-- cargo-audit -V || cargo install cargo-audit --force
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/.local/lib
- export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$HOME/.local/lib/pkgconfig
- |
if [[ "$FEATURE" == "clippy" ]]; then
cargo clippy --version | grep $CLIPPY_VERS || cargo install clippy --force --vers $CLIPPY_VERS
fi
+# TODO: rename stage and feature
- |
if [[ "$FEATURE" == "fmt" ]]; then
+ cargo-audit -V || cargo install cargo-audit --force
rustfmt -V | grep $RUSTFMT_VERS || cargo install rustfmt --vers $RUSTFMT_VERS --force
fi
- cargo install --list
@@ -57,6 +58,7 @@ jobs:
env:
- FEATURE=fmt
script:
+ - cargo audit
- cargo fmt -p exonum-configuration -- --write-mode=diff
- cd sandbox_tests && cargo fmt -p exonum-configuration-sandbox -- --write-mode=diff
- stage: lint
