2018-12-20 16:56:15 +01:00
|
|
|
stages:
|
2019-10-23 01:32:41 +02:00
|
|
|
- lint
|
2018-12-20 17:11:16 +01:00
|
|
|
- test
|
2018-12-20 16:56:15 +01:00
|
|
|
|
2018-12-30 00:49:57 +01:00
|
|
|
variables:
|
|
|
|
FEATURES: ""
|
2019-09-13 03:33:08 +02:00
|
|
|
RUST_BACKTRACE: "full"
|
2018-12-30 00:49:57 +01:00
|
|
|
|
2019-09-13 03:33:08 +02:00
|
|
|
.stable:
|
2018-12-20 16:56:15 +01:00
|
|
|
image: rust:latest
|
|
|
|
|
2019-09-13 03:33:08 +02:00
|
|
|
.nightly:
|
2018-12-20 16:56:15 +01:00
|
|
|
image: rustlang/rust:nightly
|
2020-03-26 18:04:21 +01:00
|
|
|
allow_failure: true # It's not often, but it happens nightly breaks, surprisingly.
|
2019-09-13 03:33:08 +02:00
|
|
|
|
|
|
|
.test:
|
2018-12-20 17:11:16 +01:00
|
|
|
stage: test
|
|
|
|
script:
|
2019-10-23 00:29:28 +02:00
|
|
|
- cargo test --verbose
|
2018-12-20 17:11:16 +01:00
|
|
|
|
2019-10-23 01:32:41 +02:00
|
|
|
rustfmt:
|
|
|
|
stage: lint
|
|
|
|
script:
|
2020-03-26 18:09:59 +01:00
|
|
|
- rustup component add rustfmt
|
2019-10-23 02:19:21 +02:00
|
|
|
- find -type f -iname '*.rs' -not -path './target/*' | xargs rustfmt --check --edition 2018
|
2020-03-26 18:09:59 +01:00
|
|
|
extends:
|
|
|
|
- .stable
|
2019-10-23 01:32:41 +02:00
|
|
|
|
2020-04-05 03:41:19 +02:00
|
|
|
stable-test:
|
2019-09-13 03:33:08 +02:00
|
|
|
extends:
|
|
|
|
- .test
|
|
|
|
- .stable
|
|
|
|
|
2020-04-05 03:41:19 +02:00
|
|
|
nightly-test:
|
2019-09-13 03:33:08 +02:00
|
|
|
extends:
|
|
|
|
- .test
|
|
|
|
- .nightly
|