2018-12-20 16:49:36 +00:00
|
|
|
stages:
|
|
|
|
- build
|
2019-09-13 01:26:06 +00:00
|
|
|
- test
|
2017-02-27 15:06:15 +00:00
|
|
|
|
2019-09-13 01:26:06 +00:00
|
|
|
variables:
|
|
|
|
FEATURES: ""
|
|
|
|
RUST_BACKTRACE: "full"
|
|
|
|
|
|
|
|
.stable:
|
2018-12-20 16:49:36 +00:00
|
|
|
image: rust:latest
|
2019-09-13 01:26:06 +00:00
|
|
|
cache:
|
|
|
|
key: stable
|
|
|
|
paths:
|
|
|
|
- target/
|
2018-12-20 16:49:36 +00:00
|
|
|
|
2019-09-13 01:26:06 +00:00
|
|
|
.nightly:
|
2018-12-20 16:49:36 +00:00
|
|
|
image: rustlang/rust:nightly
|
2019-09-13 01:26:06 +00:00
|
|
|
cache:
|
|
|
|
key: nightly
|
|
|
|
paths:
|
|
|
|
- target/
|
|
|
|
|
|
|
|
.build:
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- cargo build --verbose --no-default-features --features=$FEATURES
|
|
|
|
|
|
|
|
.test:
|
|
|
|
stage: test
|
2018-12-20 16:49:36 +00:00
|
|
|
script:
|
2019-09-13 01:26:06 +00:00
|
|
|
- cargo test --lib --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=minidom:
|
|
|
|
extends: rust-latest-build
|
|
|
|
variables:
|
|
|
|
FEATURES: "minidom"
|
|
|
|
|
|
|
|
rust-latest-test with features=minidom:
|
|
|
|
extends: rust-latest-test
|
|
|
|
variables:
|
|
|
|
FEATURES: "minidom"
|