2018-12-20 15:56:15 +00:00
|
|
|
stages:
|
2019-10-22 23:32:41 +00:00
|
|
|
- lint
|
2018-12-20 15:56:15 +00:00
|
|
|
- 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
|
|
|
.nightly:
|
2018-12-20 15:56:15 +00:00
|
|
|
image: rustlang/rust:nightly
|
2019-09-13 01:33:08 +00:00
|
|
|
|
|
|
|
.build:
|
|
|
|
stage: build
|
2018-12-20 15:56:15 +00:00
|
|
|
script:
|
2019-10-22 22:29:28 +00:00
|
|
|
- cargo build --verbose
|
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-10-22 22:29:28 +00:00
|
|
|
- cargo test --verbose
|
2018-12-20 16:11:16 +00:00
|
|
|
|
2019-10-22 23:32:41 +00:00
|
|
|
rustfmt:
|
|
|
|
stage: lint
|
2019-10-23 00:19:21 +00:00
|
|
|
image: rustlang/rust:nightly
|
2019-10-22 23:32:41 +00:00
|
|
|
script:
|
2019-10-23 00:19:21 +00:00
|
|
|
- find -type f -iname '*.rs' -not -path './target/*' | xargs rustfmt --check --edition 2018
|
2019-10-22 23:32:41 +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
|