2021-10-15 07:58:51 +00:00
|
|
|
image: alpine/latest
|
2020-03-18 09:28:58 +00:00
|
|
|
packages:
|
|
|
|
- go
|
2020-06-10 14:15:20 +00:00
|
|
|
- scdoc
|
2021-10-11 14:06:37 +00:00
|
|
|
- postgresql
|
2020-03-18 09:28:58 +00:00
|
|
|
sources:
|
|
|
|
- https://git.sr.ht/~emersion/soju
|
|
|
|
tasks:
|
|
|
|
- build: |
|
|
|
|
cd soju
|
2021-10-11 14:06:37 +00:00
|
|
|
go build -v ./...
|
2020-06-10 14:15:20 +00:00
|
|
|
scdoc <doc/soju.1.scd >/dev/null
|
2021-10-11 14:06:37 +00:00
|
|
|
- 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
|
2021-06-29 20:24:44 +00:00
|
|
|
test -z $(gofmt -l .)
|