xmpp-rs/.gitlab-ci.yml
Maxime “pep” Buquet 476813a10a
CI: Allow nightly to fail
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-03-26 18:04:21 +01:00

51 lines
761 B
YAML

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