xmpp-rs/.gitlab-ci.yml
Maxime “pep” Buquet 267ff2e817
CI: Replace manual rustfmt invocation with cargo fmt
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-09-16 20:01:21 +02:00

49 lines
663 B
YAML

---
stages:
- lint
- test
variables:
FEATURES: ""
RUST_BACKTRACE: "full"
.show-version:
before_script:
- rustc --version
- cargo --version
.stable:
image: rust:latest
extends:
- .show-version
.nightly:
image: rustlang/rust:nightly
# It's not often, but it happens nightly breaks, surprisingly.
allow_failure: true
extends:
- .show-version
.test:
stage: test
script:
- cargo test --verbose
rustfmt:
stage: lint
script:
- rustup component add rustfmt
- cargo fmt --check
extends:
- .stable
stable-test:
extends:
- .test
- .stable
nightly-test:
extends:
- .test
- .nightly