From bc2eaaacbda6be2eb447b41cb86b5282f685af7a Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 21 Jul 2021 07:59:41 +0800 Subject: [PATCH] Add clickhouse test to drone --- .drone.yml | 38 +++++++++++++++++++++++++++++++++++--- Makefile | 2 +- 2 files changed, 36 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 8a9f8877..ae2336df 100644 --- a/.drone.yml +++ b/.drone.yml @@ -278,8 +278,6 @@ steps: TEST_TIDB_PASSWORD: commands: - make test-tidb - - TEST_CACHE_ENABLE=true make test-tidb - - TEST_QUOTE_POLICY=reserved make test-tidb volumes: - name: cache @@ -314,7 +312,6 @@ steps: commands: - sleep 10 - make test-cockroach - - TEST_CACHE_ENABLE=true make test-cockroach volumes: - name: cache @@ -327,6 +324,40 @@ services: commands: - /cockroach/cockroach start --insecure +--- +kind: pipeline +name: test-clickhouse +depends_on: + - test-cockroach +trigger: + ref: + - refs/heads/master + - refs/pull/*/head +steps: +- name: test-clickhouse + pull: never + image: golang:1.15 + volumes: + - name: cache + path: /go/pkg/mod + environment: + TEST_CLICKHOUSE_HOST: "clickhouse:9000" + TEST_CLICKHOUSE_DBNAME: xorm_test + TEST_CLICKHOUSE_USERNAME: root + TEST_CLICKHOUSE_PASSWORD: + commands: + - sleep 10 + - make test-clickhouse + +volumes: +- name: cache + host: + path: /tmp/cache + +services: +- name: clickhouse + image: yandex/clickhouse-server:21.7.4.18 + --- kind: pipeline name: merge_coverage @@ -338,6 +369,7 @@ depends_on: - test-mssql - test-tidb - test-cockroach + - test-clickhouse trigger: ref: - refs/heads/master diff --git a/Makefile b/Makefile index ca58a025..1bfcc367 100644 --- a/Makefile +++ b/Makefile @@ -43,7 +43,7 @@ TEST_TIDB_DBNAME ?= xorm_test TEST_TIDB_USERNAME ?= root TEST_TIDB_PASSWORD ?= -TEST_CLICKHOUSE_HOST ?= clickhouse:9000 +TEST_CLICKHOUSE_HOST ?= clickhouse:8123 TEST_CLICKHOUSE_DBNAME ?= xorm_test TEST_CLICKHOUSE_USERNAME ?= root TEST_CLICKHOUSE_PASSWORD ?=