1stages:
2 - lint
3 - test
4
5variables:
6 FEATURES: ""
7 RUST_BACKTRACE: "full"
8
9.stable:
10 image: rust:latest
11
12.nightly:
13 image: rustlang/rust:nightly
14 allow_failure: true # It's not often, but it happens nightly breaks, surprisingly.
15
16.test:
17 stage: test
18 script:
19 - cargo test --verbose
20
21rustfmt:
22 stage: lint
23 script:
24 - rustup component add rustfmt
25 - find -type f -iname '*.rs' -not -path './target/*' | xargs rustfmt --check --edition 2018
26 extends:
27 - .stable
28
29stable-test:
30 extends:
31 - .test
32 - .stable
33
34nightly-test:
35 extends:
36 - .test
37 - .nightly