xmpp-rs/xmpp-parsers/.gitlab-ci.yml
2019-10-18 13:47:10 +02:00

62 lines
955 B
YAML

stages:
- 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 --no-default-features --features=$FEATURES
.test:
stage: test
script:
- cargo test --verbose --no-default-features --features=$FEATURES
rust-latest-build:
extends:
- .build
- .stable
rust-nightly-build:
extends:
- .build
- .nightly
rust-latest-test:
extends:
- .test
- .stable
rust-nightly-test:
extends:
- .test
- .nightly
rust-latest-build with features=disable-validation:
extends: rust-latest-build
variables:
FEATURES: "disable-validation"
rust-latest-test with features=disable-validation:
extends: rust-latest-test
variables:
FEATURES: "disable-validation"