mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
52 lines
697 B
YAML
52 lines
697 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
|