mirror of
https://gitlab.com/keys.openpgp.org/hagrid.git
synced 2025-10-06 00:23:08 +02:00
ci: simplify ci pipeline, check formatting
This commit is contained in:
@@ -1,25 +1,13 @@
|
||||
stages:
|
||||
- build
|
||||
|
||||
build:clippy:
|
||||
stage: build
|
||||
tags:
|
||||
- docker
|
||||
build, test and lint:
|
||||
image: "rust:1-bullseye"
|
||||
interruptible: true
|
||||
script:
|
||||
- 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
|
||||
- RUST_BACKTRACE=full cargo clippy
|
||||
|
||||
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
|
||||
- rustup component add rustfmt
|
||||
- ./make-translated-templates
|
||||
- RUST_BACKTRACE=full cargo build
|
||||
- RUST_BACKTRACE=full cargo test --all
|
||||
- cargo build
|
||||
- cargo clippy --no-deps
|
||||
- cargo fmt --all -- --check
|
||||
- cargo test --all
|
||||
|
Reference in New Issue
Block a user