1
0
mirror of https://gitlab.com/xmpp-rs/xmpp-rs.git synced 2024-07-02 19:30:36 +02:00
xmpp-rs/.gitlab-ci.yml

38 lines
590 B
YAML
Raw Normal View History

2018-12-20 16:56:15 +01:00
stages:
- lint
- test
2018-12-20 16:56:15 +01:00
variables:
FEATURES: ""
RUST_BACKTRACE: "full"
.stable:
2018-12-20 16:56:15 +01:00
image: rust:latest
.nightly:
2018-12-20 16:56:15 +01:00
image: rustlang/rust:nightly
allow_failure: true # It's not often, but it happens nightly breaks, surprisingly.
.test:
stage: test
script:
- cargo test --verbose
rustfmt:
stage: lint
script:
- rustup component add rustfmt
- find -type f -iname '*.rs' -not -path './target/*' | xargs rustfmt --check --edition 2018
extends:
- .stable
stable-test:
extends:
- .test
- .stable
nightly-test:
extends:
- .test
- .nightly