Maxime “pep” Buquet
7c15653fac
Gitlab.com's third-parti storage works half the time anyway, and it takes 8min to build 3mn to get it back.. Maybe someday.. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
50 lines
675 B
YAML
50 lines
675 B
YAML
stages:
|
|
- lint
|
|
- build
|
|
- test
|
|
|
|
variables:
|
|
FEATURES: ""
|
|
RUST_BACKTRACE: "full"
|
|
|
|
.stable:
|
|
image: rust:latest
|
|
|
|
.nightly:
|
|
image: rustlang/rust:nightly
|
|
|
|
.build:
|
|
stage: build
|
|
script:
|
|
- cargo build --verbose
|
|
|
|
.test:
|
|
stage: test
|
|
script:
|
|
- cargo test --verbose
|
|
|
|
rustfmt:
|
|
stage: lint
|
|
image: rustlang/rust:nightly
|
|
script:
|
|
- find -type f -iname '*.rs' -not -path './target/*' | xargs rustfmt --check --edition 2018
|
|
|
|
rust-latest-build:
|
|
extends:
|
|
- .build
|
|
- .stable
|
|
|
|
rust-nightly-build:
|
|
extends:
|
|
- .build
|
|
- .nightly
|
|
|
|
rust-latest-test:
|
|
extends:
|
|
- .test
|
|
- .stable
|
|
|
|
rust-nightly-test:
|
|
extends:
|
|
- .test
|
|
- .nightly
|