diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2020-07-04 22:33:59 +0200 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2020-07-04 23:34:40 +0200 |
commit | 97edc164488352897eec1313b63d42aa06bb87a8 (patch) | |
tree | 52b547297601b998892faa884629969b815af631 /.builds/lint.yml | |
download | bibdirsync-master.tar.gz bibdirsync-master.tar.bz2 |
Diffstat (limited to '.builds/lint.yml')
-rw-r--r-- | .builds/lint.yml | 27 |
1 files changed, 27 insertions, 0 deletions
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 <robin.krahl@ireas.org> +# 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 |