aboutsummaryrefslogtreecommitdiff
path: root/.builds/lint.yml
blob: 86a27cd6c3ceb675dd54a8300a635b2439173f9c (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) 2019 Robin Krahl <robin.krahl@ireas.org>
# SPDX-License-Identifier: MIT
image: archlinux
packages:
  - rustup
  - python
  - python-pip
  - python-pygit2
sources:
  - https://git.ireas.org/nitrokey-rs
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 nitrokey-rs
      cargo fmt -- --check
  - reuse: |
      cd nitrokey-rs
      ~/.local/bin/reuse lint
  - clippy: |
      cd nitrokey-rs
      cargo clippy -- -D warnings