aboutsummaryrefslogtreecommitdiff
path: root/.builds/lint.yml
blob: 5012deaa7bd98b1d088058ce010dd75fde7a24e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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