ruwuma/.builds/beta.yml
2020-06-05 01:13:54 +02:00

28 lines
726 B
YAML

image: archlinux
packages:
- rustup
sources:
- https://github.com/ruma/ruma
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
# 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 --all -- --check
fmt_exit=$?
cargo clippy --all --all-targets --all-features -- -D warnings
clippy_exit=$?
cargo test --all --verbose
test_exit=$?
exit $(( $fmt_exit || $clippy_exit || $test_exit ))