From e9cde5247dbdf34b9648fa7e755564d74cff8a64 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 15 Dec 2019 11:04:11 +0100 Subject: [PATCH] Add build manifests for build.sr.ht Also add ci/run as helper script --- .builds/README.adoc | 3 +++ .builds/debian-sid.yml | 11 +++++++++++ .builds/debian-stable.yml | 11 +++++++++++ .builds/debian-testing.yml | 11 +++++++++++ ci/run | 16 ++++++++++++++++ 5 files changed, 52 insertions(+) create mode 100644 .builds/README.adoc create mode 100644 .builds/debian-sid.yml create mode 100644 .builds/debian-stable.yml create mode 100644 .builds/debian-testing.yml create mode 100755 ci/run 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 -- 2.43.2