Add CI for reuse/test/fmt
This commit is contained in:
parent
60243b6d7c
commit
959342bb5a
1 changed files with 26 additions and 0 deletions
26
.gitlab-ci.yml
Normal file
26
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
# SPDX-FileCopyrightText: 2021 Heiko Schaefer <heiko@schaefer.name>
|
||||||
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
|
image: rust:latest
|
||||||
|
|
||||||
|
reuse:
|
||||||
|
image:
|
||||||
|
name: fsfe/reuse:latest
|
||||||
|
entrypoint: [""]
|
||||||
|
script:
|
||||||
|
- reuse lint
|
||||||
|
|
||||||
|
cargo-test:
|
||||||
|
stage: test
|
||||||
|
before_script:
|
||||||
|
- mkdir -p /run/user/$UID
|
||||||
|
- apt update -y -qq
|
||||||
|
- apt install -y -qq --no-install-recommends git rustc cargo clang make pkg-config nettle-dev libssl-dev capnproto libsqlite3-dev ca-certificates valgrind strace python3-dev python3-setuptools python3-cffi python3-pytest gnupg
|
||||||
|
- apt clean
|
||||||
|
script:
|
||||||
|
- cargo test
|
||||||
|
|
||||||
|
cargo-fmt:
|
||||||
|
script:
|
||||||
|
- rustup component add rustfmt
|
||||||
|
- cargo fmt -- --check
|
Loading…
Reference in a new issue