Update .gitlab-ci.yml

i18n
jan Michal 2 years ago
parent 3e0d018818
commit ce73dabe16

@ -1,18 +1,34 @@
image: "rust:latest"
default:
before_script:
- rustc --version
- cargo --version
stages:
- build
- test
build-job:
stage: build
test-code:
stage: test
script:
- cargo build --release
- cargo test
- cargo install cargo-tarpaulin
- cargo tarpaulin --ignore-tests
lint-test-job:
lint-code:
stage: test
script:
- cargo clippy
- rustup component add clippy
- cargo clippy -- -D warnings
format-code:
stage: test
script:
- rustup component add rustfmt
- cargo fmt -- --check
audit-code:
stage: test
script:
- cargo install cargo-audit
- cargo audit

Loading…
Cancel
Save