From 959342bb5ae09391cf1479d27eca33e51b7b2fbd Mon Sep 17 00:00:00 2001 From: Heiko Schaefer Date: Thu, 1 Jul 2021 23:12:01 +0200 Subject: [PATCH] Add CI for reuse/test/fmt --- .gitlab-ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..982ba0f --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,26 @@ +# SPDX-FileCopyrightText: 2021 Heiko Schaefer +# 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