2018-12-20 15:56:15 +00:00
|
|
|
stages:
|
|
|
|
- build
|
2018-12-20 16:11:16 +00:00
|
|
|
- test
|
2018-12-20 15:56:15 +00:00
|
|
|
|
2018-12-29 23:49:57 +00:00
|
|
|
variables:
|
|
|
|
FEATURES: ""
|
2019-09-13 01:33:08 +00:00
|
|
|
RUST_BACKTRACE: "full"
|
2018-12-29 23:49:57 +00:00
|
|
|
|
2019-09-13 01:33:08 +00:00
|
|
|
.stable:
|
2018-12-20 15:56:15 +00:00
|
|
|
image: rust:latest
|
2019-09-13 01:33:08 +00:00
|
|
|
cache:
|
|
|
|
key: stable
|
|
|
|
paths:
|
|
|
|
- target/
|
2018-12-20 15:56:15 +00:00
|
|
|
|
2019-09-13 01:33:08 +00:00
|
|
|
.nightly:
|
2018-12-20 15:56:15 +00:00
|
|
|
image: rustlang/rust:nightly
|
2019-09-13 01:33:08 +00:00
|
|
|
cache:
|
|
|
|
key: nightly
|
|
|
|
paths:
|
|
|
|
- target/
|
|
|
|
|
|
|
|
.build:
|
|
|
|
stage: build
|
2018-12-20 15:56:15 +00:00
|
|
|
script:
|
2018-12-29 23:49:57 +00:00
|
|
|
- cargo build --verbose --no-default-features --features=$FEATURES
|
2018-12-20 16:11:16 +00:00
|
|
|
|
2019-09-13 01:33:08 +00:00
|
|
|
.test:
|
2018-12-20 16:11:16 +00:00
|
|
|
stage: test
|
|
|
|
script:
|
2019-01-13 11:00:36 +00:00
|
|
|
- cargo test --verbose --no-default-features --features=$FEATURES
|
2018-12-20 16:11:16 +00:00
|
|
|
|
2019-09-13 01:33:08 +00:00
|
|
|
rust-latest-build:
|
|
|
|
extends:
|
|
|
|
- .build
|
|
|
|
- .stable
|
|
|
|
|
|
|
|
rust-nightly-build:
|
|
|
|
extends:
|
|
|
|
- .build
|
|
|
|
- .nightly
|
|
|
|
|
|
|
|
|
|
|
|
rust-latest-test:
|
|
|
|
extends:
|
|
|
|
- .test
|
|
|
|
- .stable
|
|
|
|
|
2018-12-20 16:11:16 +00:00
|
|
|
rust-nightly-test:
|
2019-09-13 01:33:08 +00:00
|
|
|
extends:
|
|
|
|
- .test
|
|
|
|
- .nightly
|
2018-12-29 23:49:57 +00:00
|
|
|
|
2019-09-13 01:33:08 +00:00
|
|
|
rust-latest-build with features=disable-validation:
|
|
|
|
extends: rust-latest-build
|
2018-12-29 23:49:57 +00:00
|
|
|
variables:
|
2019-01-12 21:00:46 +00:00
|
|
|
FEATURES: "disable-validation"
|
2018-12-29 23:49:57 +00:00
|
|
|
|
2019-09-13 01:33:08 +00:00
|
|
|
rust-latest-test with features=disable-validation:
|
|
|
|
extends: rust-latest-test
|
2018-12-29 23:49:57 +00:00
|
|
|
variables:
|
2019-01-12 21:00:46 +00:00
|
|
|
FEATURES: "disable-validation"
|