mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
49 lines
663 B
YAML
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
|