1
0
Fork 0
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:
Jan Lukas Gernert 2022-10-07 09:33:55 +02:00
parent 7b205e8e27
commit 29df3aa698

View file

@ -1,9 +1,9 @@
image: rust:latest image: rust:latest
stages: stages:
- build
- fmt
- lint - lint
- build
run-build: run-build:
stage: build stage: build
@ -12,20 +12,13 @@ run-build:
- rustc --version && cargo --version - rustc --version && cargo --version
- cargo build --release --jobs 1 - 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: run-lint:
stage: lint stage: lint
image: rust:latest image: rust:latest
before_script: before_script:
- rustup component add rustfmt
- rustup component add clippy - rustup component add clippy
script: script:
- rustc --version && cargo --version - rustc --version && cargo --version
- cargo fmt -- --check
- cargo clippy --all-targets --all-features -- -D warnings - cargo clippy --all-targets --all-features -- -D warnings