1
0
mirror of https://gitlab.com/xmpp-rs/xmpp-rs.git synced 2024-06-13 03:25:44 +02:00
xmpp-rs/.gitlab-ci.yml
Maxime “pep” Buquet 2e3004f89e CI: Add a test with no-default-features and ensure it passes
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-08-17 23:45:57 +02:00

52 lines
844 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 libicu-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 --release -- --include-ignored
- cargo test --verbose --no-default-features
rustfmt:
stage: lint
script:
- rustup component add rustfmt
- cargo fmt --check
extends:
- .stable
stable-test:
extends:
- .test
- .stable
nightly-test:
extends:
- .test
- .nightly