~ireas/rusty-man

ref: 637338cde57edf58aade880395981198c9c9bc38 rusty-man/.builds/archlinux.yml -rw-r--r-- 881 bytes
637338cdRobin Krahl Fix code formatting 7 months ago
                                                                                
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
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright (C) 2020 Robin Krahl <robin.krahl@ireas.org>
# SPDX-License-Identifier: CC0-1.0
image: archlinux
packages:
  - gnupg
  - reuse
  - rustup
sources:
  - https://git.sr.ht/~ireas/rusty-man
tasks:
  - setup: |
      rustup set profile minimal
      rustup default stable
      rustup component add rustfmt
      rustup component add clippy
  - version: |
      rustc -V
  - verify: |
      cd rusty-man
      curl -s "https://pgp.ireas.org/0x6D533958F070C57C.txt" | gpg --import
      git verify-commit HEAD
  - reuse: |
      cd rusty-man
      reuse lint
  - build: |
      cd rusty-man
      cargo build --release
  - test: |
      cd rusty-man
      cargo test
  - clippy: |
      cd rusty-man
      cargo clippy -- -D warnings
  - format: |
      cd rusty-man
      cargo fmt -- --check
triggers:
  - action: email
    condition: failure
    to: robin.krahl@ireas.org