~sbinet/star-tex

star-tex/.builds/linux.yml -rw-r--r-- 918 bytes
9bb27e8aSebastien Binet ci: bump to freebsd/latest 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# SPDX-License-Identifier: Unlicense OR MIT
image: debian/testing
packages:
 - curl
 - unzip
 - wine
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_17: |
     mkdir -p /home/build/sdk
     curl -L https://golang.org/dl/go1.17.linux-amd64.tar.gz | tar -C /home/build/sdk -xzf -
 - test_linux: |
     cd star-tex
     go test -race ./...
 - test_windows: |
     cd star-tex
     GOOS=windows \
        go test -exec=wine ./...
 - 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