Jonas Platte 40b51d73a3 Add 'ruma-common/' from commit 'b516c0cd72c1a5e9985905f60b956c5365cd8789'
git-subtree-dir: ruma-common
git-subtree-mainline: c186f0f8c9c542fd1c7cea464de1ae94e5bd32ba
git-subtree-split: b516c0cd72c1a5e9985905f60b956c5365cd8789
2020-06-05 01:40:05 +02:00

30 lines
862 B
YAML

image: archlinux
packages:
- rustup
sources:
- https://github.com/ruma/ruma-common
tasks:
- rustup: |
# We specify --profile minimal because we'd otherwise download docs
rustup toolchain install stable --profile minimal -c rustfmt -c clippy
rustup default stable
- test: |
cd ruma-common
# We don't want the build to stop on individual failure of independent
# tools, so capture tool exit codes and set the task exit code manually
set +e
cargo fmt -- --check
fmt_exit=$?
cargo clippy --all-targets --all-features -- -D warnings
clippy_exit=$?
cargo test --verbose
test_exit=$?
exit $(( $fmt_exit || $clippy_exit || $test_exit ))
# TODO: Add audit task once cargo-audit binary releases are available.
# See https://github.com/RustSec/cargo-audit/issues/66