From: Simon Ruderich Date: Sun, 15 Dec 2019 10:04:11 +0000 (+0100) Subject: Add build manifests for build.sr.ht X-Git-Tag: 0.1~11 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=e9cde5247dbdf34b9648fa7e755564d74cff8a64;p=nsscash%2Fnsscash.git Add build manifests for build.sr.ht Also add ci/run as helper script --- diff --git a/.builds/README.adoc b/.builds/README.adoc new file mode 100644 index 0000000..45f276e --- /dev/null +++ b/.builds/README.adoc @@ -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 index 0000000..18474bd --- /dev/null +++ b/.builds/debian-sid.yml @@ -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 index 0000000..8f2eb95 --- /dev/null +++ b/.builds/debian-stable.yml @@ -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 index 0000000..052b5e1 --- /dev/null +++ b/.builds/debian-testing.yml @@ -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 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