2019-09-13 00:00:46 +00:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- test
|
2017-02-19 20:50:56 +00:00
|
|
|
|
2019-09-13 00:00:46 +00:00
|
|
|
variables:
|
|
|
|
FEATURES: ""
|
2017-02-19 20:50:56 +00:00
|
|
|
|
2019-09-13 00:22:52 +00:00
|
|
|
.stable:
|
2019-09-13 00:00:46 +00:00
|
|
|
image: rust:latest
|
2019-09-13 00:41:19 +00:00
|
|
|
cache:
|
|
|
|
key: stable
|
|
|
|
paths:
|
|
|
|
- target/
|
2019-09-13 00:00:46 +00:00
|
|
|
|
2019-09-13 00:22:52 +00:00
|
|
|
.nightly:
|
2019-09-13 00:00:46 +00:00
|
|
|
image: rustlang/rust:nightly
|
2019-09-13 00:41:19 +00:00
|
|
|
cache:
|
|
|
|
key: nightly
|
|
|
|
paths:
|
|
|
|
- target/
|
2019-09-13 00:22:52 +00:00
|
|
|
|
|
|
|
.build:
|
|
|
|
stage: build
|
2019-09-13 00:00:46 +00:00
|
|
|
script:
|
|
|
|
- cargo build --verbose --no-default-features --features=$FEATURES
|
|
|
|
|
2019-09-13 00:22:52 +00:00
|
|
|
.test:
|
2019-09-13 00:00:46 +00:00
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- cargo test --verbose --no-default-features --features=$FEATURES
|
|
|
|
|
2019-09-13 00:22:52 +00:00
|
|
|
rust-latest-build:
|
|
|
|
extends:
|
|
|
|
- .build
|
|
|
|
- .stable
|
|
|
|
|
|
|
|
rust-nightly-build:
|
|
|
|
extends:
|
|
|
|
- .build
|
|
|
|
- .nightly
|
|
|
|
|
|
|
|
|
|
|
|
rust-latest-test:
|
|
|
|
extends:
|
|
|
|
- .test
|
|
|
|
- .stable
|
|
|
|
|
2019-09-13 00:00:46 +00:00
|
|
|
rust-nightly-test:
|
2019-09-13 00:22:52 +00:00
|
|
|
extends:
|
|
|
|
- .test
|
|
|
|
- .nightly
|