xmpp-rs/.gitlab-ci.yml

63 lines
955 B
YAML
Raw Normal View History

2018-12-20 15:56:15 +00:00
stages:
- 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
cache:
key: stable
paths:
- target/
2018-12-20 15:56:15 +00:00
.nightly:
2018-12-20 15:56:15 +00:00
image: rustlang/rust:nightly
cache:
key: nightly
paths:
- target/
.build:
stage: build
2018-12-20 15:56:15 +00:00
script:
- cargo build --verbose --no-default-features --features=$FEATURES
.test:
stage: test
script:
2019-01-13 11:00:36 +00:00
- 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"