2018-12-20 15:56:15 +00:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
|
2018-12-29 23:49:57 +00:00
|
|
|
variables:
|
|
|
|
FEATURES: ""
|
|
|
|
|
2018-12-20 15:56:15 +00:00
|
|
|
rust-latest:
|
|
|
|
stage: build
|
|
|
|
image: rust:latest
|
|
|
|
script:
|
2018-12-29 23:49:57 +00:00
|
|
|
- cargo build --verbose --no-default-features --features=$FEATURES
|
|
|
|
- cargo test --verbose --no-default-features --features=$FEATURES
|
2018-12-20 15:56:15 +00:00
|
|
|
|
|
|
|
rust-nightly:
|
|
|
|
stage: build
|
|
|
|
image: rustlang/rust:nightly
|
|
|
|
script:
|
2018-12-29 23:49:57 +00:00
|
|
|
- cargo build --verbose --no-default-features --features=$FEATURES
|
|
|
|
- cargo test --verbose --no-default-features --features=$FEATURES
|
|
|
|
|
2019-01-12 21:00:46 +00:00
|
|
|
"rust-latest with features=disable-validation":
|
2018-12-29 23:49:57 +00:00
|
|
|
extends: rust-latest
|
|
|
|
variables:
|
2019-01-12 21:00:46 +00:00
|
|
|
FEATURES: "disable-validation"
|
2018-12-29 23:49:57 +00:00
|
|
|
|
2019-01-12 21:00:46 +00:00
|
|
|
"rust-nightly with features=disable-validation":
|
2018-12-29 23:49:57 +00:00
|
|
|
extends: rust-nightly
|
|
|
|
variables:
|
2019-01-12 21:00:46 +00:00
|
|
|
FEATURES: "disable-validation"
|