Fix drone

This commit is contained in:
Lunny Xiao 2021-06-06 20:07:05 +08:00
parent d761ecc43d
commit 80f0e8e0b2
1 changed files with 53 additions and 0 deletions

View File

@ -363,6 +363,58 @@ services:
commands: commands:
- /cockroach/cockroach start --insecure - /cockroach/cockroach start --insecure
---
kind: pipeline
name: test-db2
depends_on:
- test-cockroach
trigger:
ref:
- refs/heads/master
- refs/pull/*/head
steps:
- name: test-db2
pull: never
image: golang:1.15
volumes:
- name: cache
path: /go/pkg/mod
environment:
TEST_DB2_HOST: db2
TEST_DB2_PORT: 50000
TEST_DB2_DBNAME: xorm_test
TEST_DB2_USERNAME: sa
TEST_DB2_PASSWORD: xorm_test
commands:
- make test-db2
- TEST_CACHE_ENABLE=true make test-db2
volumes:
- name: cache
host:
path: /tmp/cache
services:
- name: db2
pull: default
image: store/ibmcorp/db2_developer_c:11.1.4.4-x86_64
environment:
LICENSE: accept
DB2INSTANCE: db2inst1
DB2INST1_PASSWORD: xorm_test
DBNAME: xorm_test
BLU: false
ENABLE_ORACLE_COMPATIBILITY: false
UPDATEAVAIL: NO
TO_CREATE_SAMPLEDB: false
REPODB: false
IS_OSXFS: true
PERSISTENT_HOME: true
HADR_ENABLED: false
ETCD_ENDPOINT:
ETCD_USERNAME:
ETCD_PASSWORD:
--- ---
kind: pipeline kind: pipeline
name: merge_coverage name: merge_coverage
@ -374,6 +426,7 @@ depends_on:
- test-mssql - test-mssql
- test-tidb - test-tidb
- test-cockroach - test-cockroach
- test-db2
trigger: trigger:
ref: ref:
- refs/heads/master - refs/heads/master