git-subtree-dir: ruma-identifiers git-subtree-mainline: 19ce9645b6651e4de42ddf9e81ee50e19c8c0f26 git-subtree-split: c0a1d8bd440c7cde0fa4ab5e22898ddb26bb706d
27 lines
791 B
YAML
27 lines
791 B
YAML
image: archlinux
|
|
packages:
|
|
- rustup
|
|
sources:
|
|
- https://github.com/ruma/ruma-identifiers
|
|
tasks:
|
|
- rustup: |
|
|
# We specify --profile minimal because we'd otherwise download docs
|
|
rustup toolchain install 1.42.0 --profile minimal
|
|
rustup default 1.42.0
|
|
- test: |
|
|
cd ruma-identifiers
|
|
|
|
# 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
|
|
|
|
# Only make sure the code builds with the MSRV. Tests can require later
|
|
# Rust versions, don't compile or run them.
|
|
cargo build --no-default-features --verbose
|
|
build1_exit=$?
|
|
|
|
cargo build --all-features --verbose
|
|
build2_exit=$?
|
|
|
|
exit $(( $build1_exit || $build2_exit ))
|