Add drone test for mariadb

This commit is contained in:
Lunny Xiao 2020-03-09 10:08:33 +08:00
parent 78bb4c711d
commit d2e3102e72
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 34 additions and 1 deletions

View File

@ -91,11 +91,32 @@ steps:
- push - push
- pull_request - pull_request
- name: test-mariadb-utf8mb4
image: golang:1.12
depends_on:
- test-mysql-utf8mb4
environment:
GO111MODULE: "on"
GOPROXY: "https://goproxy.cn"
TEST_MYSQL_HOST: mariadb
TEST_MYSQL_CHARSET: utf8mb4
TEST_MYSQL_DBNAME: xorm_test
TEST_MYSQL_USERNAME: root
TEST_MYSQL_PASSWORD:
commands:
- make test-mysql
- TEST_CACHE_ENABLE=true make test-mysql
- TEST_QUOTE_POLICY=reserved make test-mysql
when:
event:
- push
- pull_request
- name: test-mymysql - name: test-mymysql
pull: default pull: default
image: golang:1.12 image: golang:1.12
depends_on: depends_on:
- test-mysql-utf8mb4 - test-mariadb-utf8mb4
environment: environment:
GO111MODULE: "on" GO111MODULE: "on"
GOPROXY: "https://goproxy.cn" GOPROXY: "https://goproxy.cn"
@ -260,6 +281,18 @@ services:
- tag - tag
- pull_request - pull_request
- name: mariadb
pull: default
image: mariadb:10.5
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: xorm_test
when:
event:
- push
- tag
- pull_request
- name: pgsql - name: pgsql
pull: default pull: default
image: postgres:9.5 image: postgres:9.5