xmpp-rs/.gitlab-ci.yml

50 lines
663 B
YAML
Raw Permalink Normal View History

---
2018-12-20 15:56:15 +00:00
stages:
- lint
- test
2018-12-20 15:56:15 +00:00
variables:
FEATURES: ""
RUST_BACKTRACE: "full"
.show-version:
before_script:
- rustc --version
- cargo --version
.stable:
2018-12-20 15:56:15 +00:00
image: rust:latest
extends:
- .show-version
2018-12-20 15:56:15 +00:00
.nightly:
2018-12-20 15:56:15 +00:00
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