From 7ed1207aac546c164b3dc850b984f64dbc6aa993 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 21 Feb 2020 13:56:40 +0800 Subject: [PATCH] Improve drone --- .drone.yml | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 054d2e45..3022868c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,7 +19,6 @@ steps: environment: GO111MODULE: "on" GOPROXY: "https://goproxy.cn" - TEST_CACHE_ENABLE: false commands: - make test-sqlite - TEST_CACHE_ENABLE=true make test-sqlite @@ -38,12 +37,29 @@ steps: TEST_MYSQL_DBNAME: xorm_test TEST_MYSQL_USERNAME: root TEST_MYSQL_PASSWORD: - TEST_CACHE_ENABLE: false commands: - make test-mysql - TEST_CACHE_ENABLE=true make test-mysql - - TEST_MYSQL_CHARSET=utf8mb4 make test-mysql - - TEST_MYSQL_CHARSET=utf8mb4 TEST_CACHE_ENABLE=true make test-mysql + when: + 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: event: - push @@ -90,6 +106,8 @@ steps: - name: test-postgres-schema pull: default image: golang:1.12 + depends_on: + - test-postgres environment: GO111MODULE: "on" GOPROXY: "https://goproxy.cn"