soju/.build.yml
Simon Ser b1d89163f8 ci: switch to alpine/latest
We don't need the bleeding edge.
2021-10-15 09:59:53 +02:00

24 lines
526 B
YAML

image: alpine/latest
packages:
- go
- scdoc
- postgresql
sources:
- https://git.sr.ht/~emersion/soju
tasks:
- build: |
cd soju
go build -v ./...
scdoc <doc/soju.1.scd >/dev/null
- setup-postgresql: |
sudo /etc/init.d/postgresql start
sudo -u postgres -- createuser "$USER"
sudo -u postgres -- createdb soju
- test: |
cd soju
export SOJU_TEST_POSTGRES="host=/run/postgresql dbname=soju"
go test -v ./...
- gofmt: |
cd soju
test -z $(gofmt -l .)