Fix drone

This commit is contained in:
Lunny Xiao 2021-06-10 20:03:03 +08:00
parent c8d33d5856
commit 424d4c5cc5
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 5 additions and 48 deletions

View File

@ -1,6 +1,6 @@
--- ---
kind: pipeline kind: pipeline
name: testing name: test-sqlite
trigger: trigger:
ref: ref:
- refs/heads/master - refs/heads/master
@ -17,35 +17,10 @@ steps:
commands: commands:
- make vet - make vet
- make fmt-check - make fmt-check
- make test
--- - make test-sqlite3
kind: pipeline - TEST_CACHE_ENABLE=true make test-sqlite3
name: test-sqlite - TEST_QUOTE_POLICY=reserved make test-sqlite3
depends_on:
- testing
trigger:
ref:
- refs/heads/master
- refs/pull/*/head
clone:
disable: true
steps:
- name: test-sqlite3
image: golang:1.15
environment:
GO111MODULE: "on"
GOPROXY: "https://goproxy.io"
CGO_ENABLED: 1
GOMODCACHE: '/drone/src/pkg.mod'
GOCACHE: '/drone/src/pkg.build'
commands:
- make test
- make test-sqlite3
- TEST_CACHE_ENABLE=true make test-sqlite3
- TEST_QUOTE_POLICY=reserved make test-sqlite3
volumes:
- name: cache
path: /go
- name: test-sqlite - name: test-sqlite
image: golang:1.15 image: golang:1.15
@ -59,9 +34,6 @@ steps:
- make test-sqlite - make test-sqlite
- TEST_CACHE_ENABLE=true make test-sqlite - TEST_CACHE_ENABLE=true make test-sqlite
- TEST_QUOTE_POLICY=reserved make test-sqlite - TEST_QUOTE_POLICY=reserved make test-sqlite
volumes:
- name: cache
path: /go
--- ---
kind: pipeline kind: pipeline
@ -72,8 +44,6 @@ trigger:
ref: ref:
- refs/heads/master - refs/heads/master
- refs/pull/*/head - refs/pull/*/head
clone:
disable: true
steps: steps:
- name: test-mysql - name: test-mysql
image: golang:1.15 image: golang:1.15
@ -128,8 +98,6 @@ trigger:
ref: ref:
- refs/heads/master - refs/heads/master
- refs/pull/*/head - refs/pull/*/head
clone:
disable: true
steps: steps:
- name: test-mysql8 - name: test-mysql8
image: golang:1.15 image: golang:1.15
@ -166,8 +134,6 @@ trigger:
ref: ref:
- refs/heads/master - refs/heads/master
- refs/pull/*/head - refs/pull/*/head
clone:
disable: true
steps: steps:
- name: test-mariadb - name: test-mariadb
image: golang:1.15 image: golang:1.15
@ -204,8 +170,6 @@ trigger:
ref: ref:
- refs/heads/master - refs/heads/master
- refs/pull/*/head - refs/pull/*/head
clone:
disable: true
steps: steps:
- name: test-postgres - name: test-postgres
pull: default pull: default
@ -261,10 +225,7 @@ trigger:
ref: ref:
- refs/heads/master - refs/heads/master
- refs/pull/*/head - refs/pull/*/head
clone:
disable: true
steps: steps:
- name: test-mssql - name: test-mssql
pull: default pull: default
image: golang:1.15 image: golang:1.15
@ -301,8 +262,6 @@ trigger:
ref: ref:
- refs/heads/master - refs/heads/master
- refs/pull/*/head - refs/pull/*/head
clone:
disable: true
steps: steps:
- name: test-tidb - name: test-tidb
pull: default pull: default
@ -336,8 +295,6 @@ trigger:
ref: ref:
- refs/heads/master - refs/heads/master
- refs/pull/*/head - refs/pull/*/head
clone:
disable: true
steps: steps:
- name: test-cockroach - name: test-cockroach
pull: default pull: default