Skip to content

Commit 48ec6b6

Browse files
committed
CI: add gitlab CI file for internal repo
1 parent db5f88a commit 48ec6b6

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.gitlab-ci.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
stages:
2+
- 📦 Build
3+
- 🔬 Static Analysis
4+
- 🤞🏼 Testing
5+
6+
default:
7+
image: rust:1.83
8+
9+
🚧 cargo-build:
10+
stage: 📦 Build
11+
script:
12+
- cargo build
13+
artifacts:
14+
expire_in: 1 day
15+
paths: [target]
16+
17+
🎨 cargo-fmt:
18+
stage: 🔬 Static Analysis
19+
needs: []
20+
before_script:
21+
- rustup component add rustfmt
22+
script:
23+
- cargo fmt --all -- --check
24+
25+
📎 cargo-clippy:
26+
stage: 🔬 Static Analysis
27+
needs: []
28+
before_script:
29+
- rustup component add clippy
30+
script:
31+
- cargo clippy --all-features --all-targets -- --deny warnings
32+
33+
📈 rust-lsif:
34+
stage: 🔬 Static Analysis
35+
needs: []
36+
allow_failure: true # recommended
37+
before_script:
38+
- rustup component add rust-analyzer
39+
script:
40+
- rust-analyzer lsif . > dump.lsif
41+
artifacts:
42+
reports:
43+
lsif: dump.lsif
44+
45+
✅ cargo-nextest:
46+
stage: 🤞🏼 Testing
47+
needs: [🚧 cargo-build]
48+
before_script:
49+
- curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
50+
script:
51+
- cargo nextest run --profile ci
52+
artifacts:
53+
paths: [target/nextest/ci/junit.xml]
54+
reports:
55+
junit: target/nextest/ci/junit.xml

0 commit comments

Comments
 (0)