ci: simplify ci pipeline, check formatting
This commit is contained in:
parent
b29845b893
commit
e4718d7598
|
@ -1,25 +1,13 @@
|
||||||
stages:
|
build, test and lint:
|
||||||
- build
|
|
||||||
|
|
||||||
build:clippy:
|
|
||||||
stage: build
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
image: "rust:1-bullseye"
|
image: "rust:1-bullseye"
|
||||||
|
interruptible: true
|
||||||
script:
|
script:
|
||||||
- apt update -qy
|
- apt update -qy
|
||||||
- apt install -qy libclang-dev build-essential pkg-config clang nettle-dev gettext zsh
|
- apt install -qy build-essential pkg-config clang libclang-dev nettle-dev gettext zsh
|
||||||
- rustup component add clippy
|
- rustup component add clippy
|
||||||
- RUST_BACKTRACE=full cargo clippy
|
- rustup component add rustfmt
|
||||||
|
|
||||||
build:binary:
|
|
||||||
stage: build
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
image: "rustlang/rust:nightly"
|
|
||||||
script:
|
|
||||||
- apt update -qy
|
|
||||||
- apt install -qy libclang-dev build-essential pkg-config clang nettle-dev gettext zsh
|
|
||||||
- ./make-translated-templates
|
- ./make-translated-templates
|
||||||
- RUST_BACKTRACE=full cargo build
|
- cargo build
|
||||||
- RUST_BACKTRACE=full cargo test --all
|
- cargo clippy --no-deps
|
||||||
|
- cargo fmt --all -- --check
|
||||||
|
- cargo test --all
|
||||||
|
|
Loading…
Reference in New Issue