improve drone

This commit is contained in:
Lunny Xiao 2021-06-10 20:39:03 +08:00
parent 8ed65fc601
commit 0a5ce27b18
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 10 additions and 2 deletions

View File

@ -17,7 +17,7 @@ steps:
path: /go/pkg/mod path: /go/pkg/mod
commands: commands:
- make vet - make vet
- name: test-sqlite - name: test-sqlite3
image: golang:1.15 image: golang:1.15
volumes: volumes:
- name: cache - name: cache
@ -26,10 +26,18 @@ steps:
- test-vet - test-vet
commands: commands:
- make fmt-check - make fmt-check
- make test
- make test-sqlite3 - make test-sqlite3
- TEST_CACHE_ENABLE=true make test-sqlite3 - TEST_CACHE_ENABLE=true make test-sqlite3
- TEST_QUOTE_POLICY=reserved make test-sqlite3 - TEST_QUOTE_POLICY=reserved make test-sqlite3
- name: test-sqlite
image: golang:1.15
volumes:
- name: cache
path: /go/pkg/mod
depends_on:
- test-vet
commands:
- make test
- 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