diff options
Diffstat (limited to '.builds')
-rw-r--r-- | .builds/archlinux-msrv.yml | 22 | ||||
-rw-r--r-- | .builds/archlinux-use-system-lib.yml (renamed from .builds/archlinux-use-system-lib.yaml) | 7 | ||||
-rw-r--r-- | .builds/archlinux.yml | 5 | ||||
-rw-r--r-- | .builds/lint.yml | 16 |
4 files changed, 47 insertions, 3 deletions
diff --git a/.builds/archlinux-msrv.yml b/.builds/archlinux-msrv.yml new file mode 100644 index 0000000..66c0390 --- /dev/null +++ b/.builds/archlinux-msrv.yml @@ -0,0 +1,22 @@ +# Copyright (C) 2019 Robin Krahl <robin.krahl@ireas.org> +# SPDX-License-Identifier: CC0-1.0 +image: archlinux +packages: + - rustup + - libnitrokey +environment: + USE_SYSTEM_LIBNITROKEY: "1" +sources: + - https://git.ireas.org/nitrokey-rs +tasks: + - setup: | + rustup set profile minimal + rustup default 1.34.2 + - version: | + rustc -V + - build: | + cd nitrokey-rs + cargo build --release + - test: | + cd nitrokey-rs + cargo test diff --git a/.builds/archlinux-use-system-lib.yaml b/.builds/archlinux-use-system-lib.yml index 01705c1..29bda19 100644 --- a/.builds/archlinux-use-system-lib.yaml +++ b/.builds/archlinux-use-system-lib.yml @@ -1,3 +1,5 @@ +# Copyright (C) 2019 Robin Krahl <robin.krahl@ireas.org> +# SPDX-License-Identifier: CC0-1.0 image: archlinux packages: - rust @@ -7,6 +9,8 @@ environment: sources: - https://git.ireas.org/nitrokey-rs tasks: + - version: | + rustc -V - build: | cd nitrokey-rs cargo build --release @@ -16,3 +20,6 @@ tasks: - format: | cd nitrokey-rs cargo fmt -- --check + - clippy: | + cd nitrokey-rs + cargo clippy -- -D warnings diff --git a/.builds/archlinux.yml b/.builds/archlinux.yml index 543e93c..151eb66 100644 --- a/.builds/archlinux.yml +++ b/.builds/archlinux.yml @@ -1,3 +1,5 @@ +# Copyright (C) 2019 Robin Krahl <robin.krahl@ireas.org> +# SPDX-License-Identifier: CC0-1.0 image: archlinux packages: - rust @@ -12,6 +14,3 @@ tasks: - test: | cd nitrokey-rs cargo test - - format: | - cd nitrokey-rs - cargo fmt -- --check diff --git a/.builds/lint.yml b/.builds/lint.yml new file mode 100644 index 0000000..678cde8 --- /dev/null +++ b/.builds/lint.yml @@ -0,0 +1,16 @@ +# Copyright (C) 2019 Robin Krahl <robin.krahl@ireas.org> +# SPDX-License-Identifier: CC0-1.0 +image: archlinux +packages: + - gnupg + - reuse +sources: + - https://git.ireas.org/nitrokey-rs +tasks: + - verify: | + cd nitrokey-rs + curl -s "https://pgp.ireas.org/0x6D533958F070C57C.txt" | gpg --import + git verify-commit HEAD + - reuse: | + cd nitrokey-rs + reuse lint |