-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
52 lines (43 loc) · 1 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
stages:
- fmt_check
- build
- test
.fmt_check_template: &fmt_check_definition
stage: fmt_check
script:
- rustup component add rustfmt
- cargo fmt -- --check
.job_template: &build_definition
stage: build
script:
- rustc --version && cargo --version
- cargo build --verbose
.job_template: &test_definition
stage: test
script:
- cargo install cargo2junit
- cargo test -- -Z unstable-options --format json | cargo2junit > results.xml
artifacts:
reports:
junit: results.xml
rust-latest:fmt_check:
<<: *fmt_check_definition
image: rust:latest
rust-latest:build:
<<: *build_definition
image: rust:latest
rust-latest:test:
<<: *test_definition
image: rust:latest
rust-nightly:fmt_check:
<<: *fmt_check_definition
image: rustlang/rust:nightly
allow_failure: true
rust-nightly:build:
<<: *build_definition
image: rustlang/rust:nightly
allow_failure: true
rust-nightly:test:
<<: *test_definition
image: rustlang/rust:nightly
allow_failure: true