~sbinet/star-tex-patches

star-tex: ci: add build for Linux v1 PROPOSED

Sebastien Binet: 1
 ci: add build for Linux

 1 files changed, 30 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sbinet/star-tex-patches/patches/20302/mbox | git am -3
Learn more about email & git

[PATCH star-tex] ci: add build for Linux Export this patch

Signed-off-by: Sebastien Binet <s@sbinet.org>
---
 .builds/linux.yml | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 .builds/linux.yml

diff --git a/.builds/linux.yml b/.builds/linux.yml
new file mode 100644
index 0000000..2727b1e
--- /dev/null
+++ b/.builds/linux.yml
@@ -0,0 +1,30 @@
# SPDX-License-Identifier: Unlicense OR MIT
image: debian/testing
packages:
 - curl
 - unzip
sources:
 - https://git.sr.ht/~sbinet/star-tex
environment:
 GOFLAGS: -mod=readonly
 PATH: /home/build/sdk/go/bin:/usr/bin:/home/build/go/bin
tasks:
 - install_go1_15: |
     mkdir -p /home/build/sdk
     curl https://dl.google.com/go/go1.15.linux-amd64.tar.gz | tar -C /home/build/sdk -xzf -
 - test_star_tex: |
     cd star-tex
     go test -race ./...
  - check_gofmt: |
     cd star-tex
     test -z "$(gofmt -s -l .)"
 - check_sign_off: |
     set +x -e
     cd star-tex
     for hash in $(git log -n 20 --format="%H"); do
        message=$(git log -1 --format=%B $hash)
        if [[ ! "$message" =~ "Signed-off-by: " ]]; then
            echo "Missing 'Signed-off-by' in commit $hash"
            exit 1
        fi
     done
-- 
2.30.1