aboutsummaryrefslogtreecommitdiff
path: root/.builds
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-02-01 01:03:25 +0100
committerRobin Krahl <robin.krahl@ireas.org>2019-02-18 15:29:56 +0100
commita3f0fb062048c52c3f04e907f0107e1db9b6141c (patch)
tree07531f53a38f8b5440f3f48c6ff21e945cb506c9 /.builds
downloadntw-a3f0fb062048c52c3f04e907f0107e1db9b6141c.tar.gz
ntw-a3f0fb062048c52c3f04e907f0107e1db9b6141c.tar.bz2
Initial commit
Diffstat (limited to '.builds')
-rw-r--r--.builds/archlinux.yml26
-rw-r--r--.builds/lint.yml20
2 files changed, 46 insertions, 0 deletions
diff --git a/.builds/archlinux.yml b/.builds/archlinux.yml
new file mode 100644
index 0000000..8392163
--- /dev/null
+++ b/.builds/archlinux.yml
@@ -0,0 +1,26 @@
+# Copyright (C) 2019 Robin Krahl <robin.krahl@ireas.org>
+# SPDX-License-Identifier: CC0-1.0
+image: archlinux
+packages:
+ - rustup
+sources:
+ - https://git.ireas.org/ntw
+tasks:
+ - setup: |
+ rustup update stable
+ rustup self upgrade-data
+ rustup default stable
+ rustup target add thumbv7m-none-eabi
+ rustup component add rustfmt
+ rustup component add clippy
+ - version: |
+ rustc -V
+ - build: |
+ cd ntw
+ cargo build --release
+ - format: |
+ cd ntw
+ cargo fmt -- --check
+ - clippy: |
+ cd ntw
+ cargo clippy -- -D warnings
diff --git a/.builds/lint.yml b/.builds/lint.yml
new file mode 100644
index 0000000..c9f3902
--- /dev/null
+++ b/.builds/lint.yml
@@ -0,0 +1,20 @@
+# Copyright (C) 2019 Robin Krahl <robin.krahl@ireas.org>
+# SPDX-License-Identifier: CC0-1.0
+image: archlinux
+packages:
+ - gnupg
+ - python
+ - python-pip
+ - python-pygit2
+sources:
+ - https://git.ireas.org/ntw
+tasks:
+ - setup: |
+ pip install --user fsfe-reuse
+ - verify: |
+ cd ntw
+ curl -s "https://pgp.ireas.org/0x6D533958F070C57C.txt" | gpg --import
+ git verify-commit HEAD
+ - reuse: |
+ cd ntw
+ ~/.local/bin/reuse lint