aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-01-23 16:39:24 +0100
committerRobin Krahl <robin.krahl@ireas.org>2019-01-23 16:47:12 +0100
commita290dcccc5e52bb853d6bb475bca9376c22f98f3 (patch)
tree6b24a2456645b80076b589aa74e25b04bb051fc9
parentfdb7bac3063e62776bfc13f184cf786da19f42d1 (diff)
downloadnitrokey-rs-a290dcccc5e52bb853d6bb475bca9376c22f98f3.tar.gz
nitrokey-rs-a290dcccc5e52bb853d6bb475bca9376c22f98f3.tar.bz2
Move format checks into lint build
While we want to test the code on multiple platforms and with different configurations, it is sufficient to execute the linting once. Therefore we move the formatting checks into a new lint build.
-rw-r--r--.builds/archlinux-use-system-lib.yaml3
-rw-r--r--.builds/archlinux.yml3
-rw-r--r--.builds/lint.yml15
3 files changed, 15 insertions, 6 deletions
diff --git a/.builds/archlinux-use-system-lib.yaml b/.builds/archlinux-use-system-lib.yaml
index 13f7581..785ff81 100644
--- a/.builds/archlinux-use-system-lib.yaml
+++ b/.builds/archlinux-use-system-lib.yaml
@@ -15,9 +15,6 @@ tasks:
- test: |
cd nitrokey-rs
cargo test
- - format: |
- cd nitrokey-rs
- cargo fmt -- --check
triggers:
- action: email
condition: failure
diff --git a/.builds/archlinux.yml b/.builds/archlinux.yml
index 7dab954..6cc8684 100644
--- a/.builds/archlinux.yml
+++ b/.builds/archlinux.yml
@@ -14,9 +14,6 @@ tasks:
- test: |
cd nitrokey-rs
cargo test
- - format: |
- cd nitrokey-rs
- cargo fmt -- --check
triggers:
- action: email
condition: failure
diff --git a/.builds/lint.yml b/.builds/lint.yml
new file mode 100644
index 0000000..acada7b
--- /dev/null
+++ b/.builds/lint.yml
@@ -0,0 +1,15 @@
+# Copyright (C) 2019 Robin Krahl <robin.krahl@ireas.org>
+# SPDX-License-Identifier: MIT
+image: archlinux
+packages:
+ - rust
+sources:
+ - https://git.sr.ht/~ireas/nitrokey-rs
+tasks:
+ - format: |
+ cd nitrokey-rs
+ cargo fmt -- --check
+triggers:
+ - action: email
+ condition: failure
+ to: nitrokey-rs-dev <nitrokey-rs-dev@ireas.org>