mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-27 02:14:14 +00:00
86e2789960
* update github.com/PuerkitoBio/goquery * update github.com/alecthomas/chroma * update github.com/blevesearch/bleve/v2 * update github.com/caddyserver/certmagic * update github.com/go-enry/go-enry/v2 * update github.com/go-git/go-billy/v5 * update github.com/go-git/go-git/v5 * update github.com/go-redis/redis/v8 * update github.com/go-testfixtures/testfixtures/v3 * update github.com/jaytaylor/html2text * update github.com/json-iterator/go * update github.com/klauspost/compress * update github.com/markbates/goth * update github.com/mattn/go-isatty * update github.com/mholt/archiver/v3 * update github.com/microcosm-cc/bluemonday * update github.com/minio/minio-go/v7 * update github.com/prometheus/client_golang * update github.com/unrolled/render * update github.com/xanzy/go-gitlab * update github.com/yuin/goldmark * update github.com/yuin/goldmark-highlighting Co-authored-by: techknowlogick <techknowlogick@gitea.io>
46 lines
1 KiB
YAML
Vendored
46 lines
1 KiB
YAML
Vendored
language: go
|
|
|
|
go:
|
|
- 1.14.x
|
|
- 1.15.x
|
|
- 1.16.x
|
|
|
|
sudo: true
|
|
|
|
env:
|
|
global:
|
|
- PGUSER=postgres
|
|
- PQGOSSLTESTS=1
|
|
- PQSSLCERTTEST_PATH=$PWD/certs
|
|
- PGHOST=127.0.0.1
|
|
- GODEBUG=x509ignoreCN=0
|
|
matrix:
|
|
- PGVERSION=10
|
|
- PGVERSION=9.6
|
|
- PGVERSION=9.5
|
|
- PGVERSION=9.4
|
|
|
|
before_install:
|
|
- ./.travis.sh postgresql_uninstall
|
|
- ./.travis.sh pgdg_repository
|
|
- ./.travis.sh postgresql_install
|
|
- ./.travis.sh postgresql_configure
|
|
- ./.travis.sh client_configure
|
|
- go get golang.org/x/tools/cmd/goimports
|
|
- go get golang.org/x/lint/golint
|
|
- GO111MODULE=on go get honnef.co/go/tools/cmd/staticcheck@2020.1.3
|
|
|
|
before_script:
|
|
- createdb pqgotest
|
|
- createuser -DRS pqgossltest
|
|
- createuser -DRS pqgosslcert
|
|
|
|
script:
|
|
- >
|
|
goimports -d -e $(find -name '*.go') | awk '{ print } END { exit NR == 0 ? 0 : 1 }'
|
|
- go vet ./...
|
|
- staticcheck -go 1.13 ./...
|
|
- golint ./...
|
|
- PQTEST_BINARY_PARAMETERS=no go test -race -v ./...
|
|
- PQTEST_BINARY_PARAMETERS=yes go test -race -v ./...
|