git-subtree-dir: ruma-serde git-subtree-mainline: ec8f70f42a5a3e44e082de21b153d5ff2bece72d git-subtree-split: 851ffea6d20bef1c66f1c8e0ceb4d4a00c9804fc
28 lines
735 B
YAML
28 lines
735 B
YAML
image: archlinux
|
|
packages:
|
|
- rustup
|
|
sources:
|
|
- https://github.com/ruma/ruma-serde
|
|
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-serde
|
|
|
|
# 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 --all-features --verbose
|
|
test_exit=$?
|
|
|
|
exit $(( $fmt_exit || $clippy_exit || $test_exit ))
|