Commit Diff


commit - 3a1962417f5a84d9f1338b4cbab827577039f038
commit + dce3ee7356ef403d0293d91edeefd789fa41fc83
blob - /dev/null
blob + 0ec9d3729d2e38a45a841a414e392ac986b7c87a (mode 644)
--- /dev/null
+++ .build.yml
@@ -0,0 +1,27 @@
+# SPDX-FileCopyrightText: 2023 Thomas Böhler <witcher@wiredspace.de>
+#
+# SPDX-License-Identifier: CC0-1.0
+
+image: alpine
+packages:
+  - reuse
+  - rustc
+  - cargo
+sources:
+  - https://git.sr.ht/~witcher/todotxt_parser
+tasks:
+  - reuse: |
+      cd todotxt_parser
+      reuse lint
+  - fetch: |
+      cd todotxt_parser
+      cargo fetch --locked
+  - format: |
+      cd todotxt_parser
+      cargo fmt -- --check
+  - clippy: |
+      cd todotxt_parser
+      cargo clippy --frozen -- -D warnings
+  - build: |
+      cd todotxt_parser
+      cargo build