xmpp-rs/.gitlab-ci.yml

52 lines
844 B
YAML
Raw Normal View History

---
2018-12-20 15:56:15 +00:00
stages:
- lint
- test
2018-12-20 15:56:15 +00:00
variables:
FEATURES: ""
RUST_BACKTRACE: "full"
.show-version:
before_script:
2023-06-05 23:07:19 +00:00
- 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
2018-12-20 15:56:15 +00:00
.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