From 97edc164488352897eec1313b63d42aa06bb87a8 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Sat, 4 Jul 2020 22:33:59 +0200 Subject: Initial commit --- .builds/lint.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .builds/lint.yml (limited to '.builds/lint.yml') diff --git a/.builds/lint.yml b/.builds/lint.yml new file mode 100644 index 0000000..5012dea --- /dev/null +++ b/.builds/lint.yml @@ -0,0 +1,27 @@ +# Copyright (C) 2020 Robin Krahl +# SPDX-License-Identifier: MIT +image: archlinux +packages: + - rustup + - python + - python-pip + - python-pygit2 +sources: + - https://git.ireas.org/bibdirsync +tasks: + - setup: | + pip install --user fsfe-reuse + rustup update stable + rustup self upgrade-data + rustup default stable + rustup component add rustfmt + rustup component add clippy + - format: | + cd bibdirsync + cargo fmt -- --check + - reuse: | + cd bibdirsync + ~/.local/bin/reuse lint + - clippy: | + cd bibdirsync + cargo clippy -- -D warnings -- cgit v1.2.1