Improve drone
This commit is contained in:
parent
ca8df1ee7e
commit
7ed1207aac
26
.drone.yml
26
.drone.yml
|
@ -19,7 +19,6 @@ steps:
|
||||||
environment:
|
environment:
|
||||||
GO111MODULE: "on"
|
GO111MODULE: "on"
|
||||||
GOPROXY: "https://goproxy.cn"
|
GOPROXY: "https://goproxy.cn"
|
||||||
TEST_CACHE_ENABLE: false
|
|
||||||
commands:
|
commands:
|
||||||
- make test-sqlite
|
- make test-sqlite
|
||||||
- TEST_CACHE_ENABLE=true make test-sqlite
|
- TEST_CACHE_ENABLE=true make test-sqlite
|
||||||
|
@ -38,12 +37,29 @@ steps:
|
||||||
TEST_MYSQL_DBNAME: xorm_test
|
TEST_MYSQL_DBNAME: xorm_test
|
||||||
TEST_MYSQL_USERNAME: root
|
TEST_MYSQL_USERNAME: root
|
||||||
TEST_MYSQL_PASSWORD:
|
TEST_MYSQL_PASSWORD:
|
||||||
TEST_CACHE_ENABLE: false
|
|
||||||
commands:
|
commands:
|
||||||
- make test-mysql
|
- make test-mysql
|
||||||
- TEST_CACHE_ENABLE=true make test-mysql
|
- TEST_CACHE_ENABLE=true make test-mysql
|
||||||
- TEST_MYSQL_CHARSET=utf8mb4 make test-mysql
|
when:
|
||||||
- TEST_MYSQL_CHARSET=utf8mb4 TEST_CACHE_ENABLE=true make test-mysql
|
event:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
- name: test-mysql-utf8mb4
|
||||||
|
image: golang:1.12
|
||||||
|
depends_on:
|
||||||
|
- test-mysql
|
||||||
|
environment:
|
||||||
|
GO111MODULE: "on"
|
||||||
|
GOPROXY: "https://goproxy.cn"
|
||||||
|
TEST_MYSQL_HOST: mysql
|
||||||
|
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
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
@ -90,6 +106,8 @@ steps:
|
||||||
- name: test-postgres-schema
|
- name: test-postgres-schema
|
||||||
pull: default
|
pull: default
|
||||||
image: golang:1.12
|
image: golang:1.12
|
||||||
|
depends_on:
|
||||||
|
- test-postgres
|
||||||
environment:
|
environment:
|
||||||
GO111MODULE: "on"
|
GO111MODULE: "on"
|
||||||
GOPROXY: "https://goproxy.cn"
|
GOPROXY: "https://goproxy.cn"
|
||||||
|
|
Loading…
Reference in New Issue