image: archlinux packages: - rustup sources: - https://github.com/ruma/ruma tasks: - rustup: | rustup toolchain install nightly --profile minimal -c rustfmt,clippy rustup default nightly - 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 --quiet -- -D warnings clippy_exit=$? exit $(( $fmt_exit || $clippy_exit ))