Update .gitlab-ci.yml
parent
3e0d018818
commit
ce73dabe16
@ -1,18 +1,34 @@
|
|||||||
image: "rust:latest"
|
image: "rust:latest"
|
||||||
|
|
||||||
|
default:
|
||||||
|
before_script:
|
||||||
|
- rustc --version
|
||||||
|
- cargo --version
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
|
||||||
- test
|
- test
|
||||||
|
|
||||||
|
test-code:
|
||||||
build-job:
|
stage: test
|
||||||
stage: build
|
|
||||||
script:
|
script:
|
||||||
- cargo build --release
|
- cargo test
|
||||||
|
- cargo install cargo-tarpaulin
|
||||||
|
- cargo tarpaulin --ignore-tests
|
||||||
|
|
||||||
|
lint-code:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- rustup component add clippy
|
||||||
|
- cargo clippy -- -D warnings
|
||||||
|
|
||||||
lint-test-job:
|
format-code:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- cargo clippy
|
- rustup component add rustfmt
|
||||||
|
- cargo fmt -- --check
|
||||||
|
|
||||||
|
audit-code:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- cargo install cargo-audit
|
||||||
|
- cargo audit
|
||||||
|
Loading…
Reference in New Issue