For some reason, `cargo clippy` ignores the tests when run with the `--manifest-path` option.
18 lines
451 B
YAML
18 lines
451 B
YAML
language: rust
|
|
rust: nightly
|
|
sudo: false
|
|
|
|
before_script:
|
|
- cargo install clippy || true
|
|
- export PATH=$HOME/.cargo/bin:$PATH
|
|
|
|
script:
|
|
- cargo test --all --all-features
|
|
- |
|
|
if command -v cargo-clippy > /dev/null; then
|
|
CLIPPY_STATUS=0
|
|
for package in maud_htmlescape maud_macros maud maud_lints maud_extras; do
|
|
(cd $package && cargo clippy -- -D warnings) || CLIPPY_STATUS=$?
|
|
done
|
|
(exit $CLIPPY_STATUS)
|
|
fi
|