xmpp-rs/.gitlab-ci.yml
Maxime “pep” Buquet a74eeb2910 CI: Lighter docker images
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-06-05 18:01:51 +00:00

50 lines
753 B
YAML

---
stages:
- lint
- test
variables:
FEATURES: ""
RUST_BACKTRACE: "full"
.show-version:
before_script:
- apt-get update; apt-get install -y --no-install-recommends pkg-config libssl-dev
- rustc --version
- cargo --version
.stable:
image: rust:slim
extends:
- .show-version
.nightly:
image: rustlang/rust:nightly-slim
# 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