mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-17 19:08:22 -07:00
ad1b6d439f
* Add support for database schema * Require setting search_path for the db user * Add schema setting to admin/config.tmpl * Use a schema different from default for psql tests * Update postgres scripts to use custom schema * Update to xorm/core 0.7.3 and xorm/xorm c37aff9b3a * Fix migration test Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
33 lines
569 B
YAML
33 lines
569 B
YAML
---
|
|
kind: pipeline
|
|
name: go1.12
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
pull: default
|
|
image: golang:1.12
|
|
commands:
|
|
- go vet
|
|
- "go test -v -race -coverprofile=coverage.txt -covermode=atomic -dbConn=\"root:@tcp(mysql:3306)/core_test?charset=utf8mb4\""
|
|
environment:
|
|
GO111MODULE: "on"
|
|
GOPROXY: https://goproxy.cn
|
|
when:
|
|
event:
|
|
- push
|
|
- tag
|
|
- pull_request
|
|
|
|
services:
|
|
- name: mysql
|
|
pull: default
|
|
image: mysql:5.7
|
|
environment:
|
|
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
|
MYSQL_DATABASE: core_test
|
|
when:
|
|
event:
|
|
- push
|
|
- tag
|
|
- pull_request |