1
0
mirror of https://gitlab.com/xmpp-rs/xmpp-rs.git synced 2024-07-03 20:00:36 +02:00
xmpp-rs/.gitlab-ci.yml
Maxime “pep” Buquet 6d1d441372 Check with nightly image; remove zsh-ism
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-23 02:31:14 +02:00

59 lines
780 B
YAML

stages:
- lint
- build
- test
variables:
FEATURES: ""
RUST_BACKTRACE: "full"
.stable:
image: rust:latest
cache:
key: stable
paths:
- target/
.nightly:
image: rustlang/rust:nightly
cache:
key: nightly
paths:
- target/
.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