-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
63 lines (56 loc) · 976 Bytes
/
.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
53
54
55
56
57
58
59
60
61
62
63
image: "rust:latest"
default:
before_script:
- rustc --version
- cargo --version
stages:
- test
- build
- release
test-code:
stage: test
cache:
paths:
- target/
script:
- cargo test
- cargo install cargo-tarpaulin
- cargo tarpaulin --ignore-tests
lint-code:
stage: test
cache:
paths:
- target/
script:
- rustup component add clippy
- cargo clippy -- -D warnings
format-code:
stage: test
cache:
paths:
- target/
script:
- rustup component add rustfmt
- cargo fmt -- --check
audit-code:
stage: test
cache:
paths:
- target/
script:
- cargo install cargo-audit
- cargo audit
build:
stage: build
script:
- cargo build --release
- echo GE_JOB_ID=$CI_JOB_ID >> generate_executables.env
parallel:
matrix:
- PLATFORM: [windows, mac, linux]
cache:
paths:
- target/
artifacts:
paths:
- target/release/mod_installer*