mirror of
https://gitlab.com/news-flash/article_scraper.git
synced 2025-07-07 16:15:32 +02:00
simplify ci pipe
This commit is contained in:
parent
7b205e8e27
commit
29df3aa698
1 changed files with 4 additions and 11 deletions
|
@ -1,9 +1,9 @@
|
|||
image: rust:latest
|
||||
|
||||
stages:
|
||||
- build
|
||||
- fmt
|
||||
- lint
|
||||
- build
|
||||
|
||||
|
||||
run-build:
|
||||
stage: build
|
||||
|
@ -12,20 +12,13 @@ run-build:
|
|||
- rustc --version && cargo --version
|
||||
- cargo build --release --jobs 1
|
||||
|
||||
run-fmt:
|
||||
stage: fmt
|
||||
image: rust:latest
|
||||
before_script:
|
||||
- rustup component add rustfmt
|
||||
script:
|
||||
- rustc --version && cargo --version
|
||||
- cargo fmt -- --check
|
||||
|
||||
run-lint:
|
||||
stage: lint
|
||||
image: rust:latest
|
||||
before_script:
|
||||
- rustup component add rustfmt
|
||||
- rustup component add clippy
|
||||
script:
|
||||
- rustc --version && cargo --version
|
||||
- cargo fmt -- --check
|
||||
- cargo clippy --all-targets --all-features -- -D warnings
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue