2019-09-13 01:10:06 +00:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- test
|
2017-02-19 20:02:28 +00:00
|
|
|
|
2019-09-13 01:10:06 +00:00
|
|
|
variables:
|
|
|
|
FEATURES: ""
|
|
|
|
RUST_BACKTRACE: "full"
|
2017-05-27 21:37:37 +00:00
|
|
|
|
2019-09-13 01:10:06 +00:00
|
|
|
.stable:
|
|
|
|
image: rust:latest
|
|
|
|
cache:
|
|
|
|
key: stable
|
|
|
|
paths:
|
|
|
|
- target/
|
|
|
|
|
|
|
|
.nightly:
|
|
|
|
image: rustlang/rust:nightly
|
|
|
|
cache:
|
|
|
|
key: nightly
|
|
|
|
paths:
|
|
|
|
- target/
|
|
|
|
|
|
|
|
.build:
|
|
|
|
stage: build
|
2017-02-19 20:02:28 +00:00
|
|
|
script:
|
2019-09-13 01:10:06 +00:00
|
|
|
- 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
|
2019-09-13 01:14:00 +00:00
|
|
|
|
|
|
|
rust-latest-build with features=comments:
|
|
|
|
extends: rust-latest-build
|
|
|
|
variables:
|
|
|
|
FEATURES: "comments"
|
|
|
|
|
|
|
|
rust-latest-test with features=comments:
|
|
|
|
extends: rust-latest-test
|
|
|
|
variables:
|
|
|
|
FEATURES: "comments"
|