git-subtree-dir: ruma-signatures git-subtree-mainline: 50b74e2b7633f0c4dddb9a71313dc198c58a3074 git-subtree-split: 1ca545cba8dfd43e0fc8e3c18e1311fb73390a97
28 lines
730 B
YAML
28 lines
730 B
YAML
image: archlinux
|
|
packages:
|
|
- rustup
|
|
sources:
|
|
- https://github.com/ruma/ruma-signatures
|
|
tasks:
|
|
- rustup: |
|
|
# We specify --profile minimal because we'd otherwise download docs
|
|
rustup toolchain install beta --profile minimal -c rustfmt -c clippy
|
|
rustup default beta
|
|
- test: |
|
|
cd ruma-signatures
|
|
|
|
# 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 ))
|