~emersion/soju

ref: ce19f76673b5bfd369766f6696e042b0a8df7691 soju/.build.yml -rw-r--r-- 526 bytes
ce19f766Simon Ser database/postgres: fix inverted networkID check in ListWebPushSubscriptions 4 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
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 .)