xmpp-rs-mirror/.gitlab-ci.yml

54 lines
790 B
YAML
Raw Normal View History

2018-12-20 15:56:15 +00:00
stages:
- lint
2018-12-20 15:56:15 +00:00
- build
- test
2018-12-20 15:56:15 +00:00
variables:
FEATURES: ""
RUST_BACKTRACE: "full"
.stable:
2018-12-20 15:56:15 +00:00
image: rust:latest
.nightly:
2018-12-20 15:56:15 +00:00
image: rustlang/rust:nightly
allow_failure: true # It's not often, but it happens nightly breaks, surprisingly.
.build:
stage: build
2018-12-20 15:56:15 +00:00
script:
- cargo build --verbose
.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
rust-latest-build:
extends:
- .build
- .stable
rust-nightly-build:
extends:
- .build
- .nightly
rust-latest-test:
extends:
- .test
- .stable
rust-nightly-test:
extends:
- .test
- .nightly