From a290dcccc5e52bb853d6bb475bca9376c22f98f3 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Wed, 23 Jan 2019 16:39:24 +0100 Subject: 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. --- .builds/archlinux-use-system-lib.yaml | 3 --- .builds/archlinux.yml | 3 --- .builds/lint.yml | 15 +++++++++++++++ 3 files changed, 15 insertions(+), 6 deletions(-) create mode 100644 .builds/lint.yml 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 +# 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 -- cgit v1.2.1