]> ruderich.org/simon Gitweb - nsscash/nsscash.git/commitdiff
Add build manifests for build.sr.ht
authorSimon Ruderich <simon@ruderich.org>
Sun, 15 Dec 2019 10:04:11 +0000 (11:04 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sun, 15 Dec 2019 10:14:20 +0000 (11:14 +0100)
Also add ci/run as helper script

.builds/README.adoc [new file with mode: 0644]
.builds/debian-sid.yml [new file with mode: 0644]
.builds/debian-stable.yml [new file with mode: 0644]
.builds/debian-testing.yml [new file with mode: 0644]
ci/run [new file with mode: 0755]

diff --git a/.builds/README.adoc b/.builds/README.adoc
new file mode 100644 (file)
index 0000000..45f276e
--- /dev/null
@@ -0,0 +1,3 @@
+= README
+
+Build manifests for build.sr.ht to test on multiple platforms
diff --git a/.builds/debian-sid.yml b/.builds/debian-sid.yml
new file mode 100644 (file)
index 0000000..18474bd
--- /dev/null
@@ -0,0 +1,11 @@
+image: debian/sid
+packages:
+  - build-essential
+  - clang
+  - git
+  - golang
+  - golang-golang-x-tools
+tasks:
+  - all: |
+      cd nsscash
+      ./ci/run
diff --git a/.builds/debian-stable.yml b/.builds/debian-stable.yml
new file mode 100644 (file)
index 0000000..8f2eb95
--- /dev/null
@@ -0,0 +1,11 @@
+image: debian/stable
+packages:
+  - build-essential
+  - clang
+  - git
+  - golang
+  - golang-golang-x-tools
+tasks:
+  - all: |
+      cd nsscash
+      ./ci/run
diff --git a/.builds/debian-testing.yml b/.builds/debian-testing.yml
new file mode 100644 (file)
index 0000000..052b5e1
--- /dev/null
@@ -0,0 +1,11 @@
+image: debian/testing
+packages:
+  - build-essential
+  - clang
+  - git
+  - golang
+  - golang-golang-x-tools
+tasks:
+  - all: |
+      cd nsscash
+      ./ci/run
diff --git a/ci/run b/ci/run
new file mode 100755 (executable)
index 0000000..7217067
--- /dev/null
+++ b/ci/run
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+set -eu
+set -x
+
+
+make
+make test
+
+test -z "$(git clean -nd)" # any untracked files left?
+make clean
+test -z "$(git clean -ndx)" # any unignored files left?
+
+# Build with clang
+make      CC=clang
+make test CC=clang