use another cache
This commit is contained in:
parent
3e9ab06566
commit
5910de0efa
406
.drone.yml
406
.drone.yml
|
@ -3,33 +3,59 @@ kind: pipeline
|
||||||
name: testing
|
name: testing
|
||||||
steps:
|
steps:
|
||||||
- name: restore-cache
|
- name: restore-cache
|
||||||
image: drillster/drone-volume-cache
|
image: meltwater/drone-cache
|
||||||
|
pull: always
|
||||||
settings:
|
settings:
|
||||||
|
backend: "filesystem"
|
||||||
restore: true
|
restore: true
|
||||||
|
cache_key: "volume"
|
||||||
|
archive_format: "gzip"
|
||||||
mount:
|
mount:
|
||||||
- $GOPATH/pkg/mod
|
- pkg.mod
|
||||||
|
- pkg.build
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
path: /cache
|
path: /go
|
||||||
|
|
||||||
- name: test-vet
|
- name: test-vet
|
||||||
image: golang:1.13 # The lowest golang requirement
|
image: golang:1.15
|
||||||
environment:
|
environment:
|
||||||
GO111MODULE: "on"
|
GO111MODULE: "on"
|
||||||
GOPROXY: "https://goproxy.io"
|
GOPROXY: "https://goproxy.io"
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
GOMODCACHE: '/drone/src/pkg.mod'
|
||||||
|
GOCACHE: '/drone/src/pkg.build'
|
||||||
commands:
|
commands:
|
||||||
- make vet
|
- make vet
|
||||||
- make test
|
- make test
|
||||||
- make fmt-check
|
- make fmt-check
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /go
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
|
- name: rebuild-cache
|
||||||
|
image: meltwater/drone-cache:dev
|
||||||
|
pull: true
|
||||||
|
settings:
|
||||||
|
backend: "filesystem"
|
||||||
|
rebuild: true
|
||||||
|
cache_key: "volume"
|
||||||
|
archive_format: "gzip"
|
||||||
|
mount:
|
||||||
|
- pkg.mod
|
||||||
|
- pkg.build
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /go
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
host:
|
host:
|
||||||
path: /tmp/cache
|
path: /var/lib/cache
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
@ -38,29 +64,55 @@ depends_on:
|
||||||
- testing
|
- testing
|
||||||
steps:
|
steps:
|
||||||
- name: restore-cache
|
- name: restore-cache
|
||||||
image: drillster/drone-volume-cache
|
image: meltwater/drone-cache
|
||||||
|
pull: always
|
||||||
settings:
|
settings:
|
||||||
|
backend: "filesystem"
|
||||||
restore: true
|
restore: true
|
||||||
|
cache_key: "volume"
|
||||||
|
archive_format: "gzip"
|
||||||
mount:
|
mount:
|
||||||
- $GOPATH/pkg/mod
|
- pkg.mod
|
||||||
|
- pkg.build
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
path: /cache
|
path: /go
|
||||||
|
|
||||||
- name: test-sqlite
|
- name: test-sqlite
|
||||||
image: golang:1.13
|
image: golang:1.15
|
||||||
environment:
|
environment:
|
||||||
GO111MODULE: "on"
|
GO111MODULE: "on"
|
||||||
GOPROXY: "https://goproxy.io"
|
GOPROXY: "https://goproxy.io"
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
GOMODCACHE: '/drone/src/pkg.mod'
|
||||||
|
GOCACHE: '/drone/src/pkg.build'
|
||||||
commands:
|
commands:
|
||||||
- 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
|
||||||
|
|
||||||
|
- name: rebuild-cache
|
||||||
|
image: meltwater/drone-cache:dev
|
||||||
|
pull: true
|
||||||
|
settings:
|
||||||
|
backend: "filesystem"
|
||||||
|
rebuild: true
|
||||||
|
cache_key: "volume"
|
||||||
|
archive_format: "gzip"
|
||||||
|
mount:
|
||||||
|
- pkg.mod
|
||||||
|
- pkg.build
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /go
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
host:
|
host:
|
||||||
path: /tmp/cache
|
path: /var/lib/cache
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
@ -69,20 +121,28 @@ depends_on:
|
||||||
- test-sqlite
|
- test-sqlite
|
||||||
steps:
|
steps:
|
||||||
- name: restore-cache
|
- name: restore-cache
|
||||||
image: drillster/drone-volume-cache
|
image: meltwater/drone-cache
|
||||||
|
pull: always
|
||||||
settings:
|
settings:
|
||||||
|
backend: "filesystem"
|
||||||
restore: true
|
restore: true
|
||||||
|
cache_key: "volume"
|
||||||
|
archive_format: "gzip"
|
||||||
mount:
|
mount:
|
||||||
- $GOPATH/pkg/mod
|
- pkg.mod
|
||||||
|
- pkg.build
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
path: /cache
|
path: /go
|
||||||
|
|
||||||
- name: test-mysql
|
- name: test-mysql
|
||||||
image: golang:1.13
|
image: golang:1.15
|
||||||
environment:
|
environment:
|
||||||
GO111MODULE: "on"
|
GO111MODULE: "on"
|
||||||
GOPROXY: "https://goproxy.io"
|
GOPROXY: "https://goproxy.io"
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
GOMODCACHE: '/drone/src/pkg.mod'
|
||||||
|
GOCACHE: '/drone/src/pkg.build'
|
||||||
TEST_MYSQL_HOST: mysql
|
TEST_MYSQL_HOST: mysql
|
||||||
TEST_MYSQL_CHARSET: utf8
|
TEST_MYSQL_CHARSET: utf8
|
||||||
TEST_MYSQL_DBNAME: xorm_test
|
TEST_MYSQL_DBNAME: xorm_test
|
||||||
|
@ -92,14 +152,20 @@ steps:
|
||||||
- make test-mysql
|
- make test-mysql
|
||||||
- TEST_CACHE_ENABLE=true make test-mysql
|
- TEST_CACHE_ENABLE=true make test-mysql
|
||||||
- TEST_QUOTE_POLICY=reserved make test-mysql
|
- TEST_QUOTE_POLICY=reserved make test-mysql
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /go
|
||||||
|
|
||||||
- name: test-mysql-utf8mb4
|
- name: test-mysql-utf8mb4
|
||||||
image: golang:1.13
|
image: golang:1.15
|
||||||
depends_on:
|
depends_on:
|
||||||
- test-mysql
|
- test-mysql
|
||||||
environment:
|
environment:
|
||||||
GO111MODULE: "on"
|
GO111MODULE: "on"
|
||||||
GOPROXY: "https://goproxy.io"
|
GOPROXY: "https://goproxy.io"
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
GOMODCACHE: '/drone/src/pkg.mod'
|
||||||
|
GOCACHE: '/drone/src/pkg.build'
|
||||||
TEST_MYSQL_HOST: mysql
|
TEST_MYSQL_HOST: mysql
|
||||||
TEST_MYSQL_CHARSET: utf8mb4
|
TEST_MYSQL_CHARSET: utf8mb4
|
||||||
TEST_MYSQL_DBNAME: xorm_test
|
TEST_MYSQL_DBNAME: xorm_test
|
||||||
|
@ -109,15 +175,21 @@ steps:
|
||||||
- make test-mysql
|
- make test-mysql
|
||||||
- TEST_CACHE_ENABLE=true make test-mysql
|
- TEST_CACHE_ENABLE=true make test-mysql
|
||||||
- TEST_QUOTE_POLICY=reserved make test-mysql
|
- TEST_QUOTE_POLICY=reserved make test-mysql
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /go
|
||||||
|
|
||||||
- name: test-mymysql
|
- name: test-mymysql
|
||||||
pull: default
|
pull: default
|
||||||
image: golang:1.13
|
image: golang:1.15
|
||||||
depends_on:
|
depends_on:
|
||||||
- test-mysql-utf8mb4
|
- test-mysql-utf8mb4
|
||||||
environment:
|
environment:
|
||||||
GO111MODULE: "on"
|
GO111MODULE: "on"
|
||||||
GOPROXY: "https://goproxy.io"
|
GOPROXY: "https://goproxy.io"
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
GOMODCACHE: '/drone/src/pkg.mod'
|
||||||
|
GOCACHE: '/drone/src/pkg.build'
|
||||||
TEST_MYSQL_HOST: mysql:3306
|
TEST_MYSQL_HOST: mysql:3306
|
||||||
TEST_MYSQL_DBNAME: xorm_test
|
TEST_MYSQL_DBNAME: xorm_test
|
||||||
TEST_MYSQL_USERNAME: root
|
TEST_MYSQL_USERNAME: root
|
||||||
|
@ -126,6 +198,29 @@ steps:
|
||||||
- make test-mymysql
|
- make test-mymysql
|
||||||
- TEST_CACHE_ENABLE=true make test-mymysql
|
- TEST_CACHE_ENABLE=true make test-mymysql
|
||||||
- TEST_QUOTE_POLICY=reserved make test-mymysql
|
- TEST_QUOTE_POLICY=reserved make test-mymysql
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /go
|
||||||
|
|
||||||
|
- name: rebuild-cache
|
||||||
|
image: meltwater/drone-cache:dev
|
||||||
|
pull: true
|
||||||
|
settings:
|
||||||
|
backend: "filesystem"
|
||||||
|
rebuild: true
|
||||||
|
cache_key: "volume"
|
||||||
|
archive_format: "gzip"
|
||||||
|
mount:
|
||||||
|
- pkg.mod
|
||||||
|
- pkg.build
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /go
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
host:
|
||||||
|
path: /var/lib/cache
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: mysql
|
- name: mysql
|
||||||
|
@ -135,11 +230,6 @@ services:
|
||||||
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
||||||
MYSQL_DATABASE: xorm_test
|
MYSQL_DATABASE: xorm_test
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: cache
|
|
||||||
host:
|
|
||||||
path: /tmp/cache
|
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: test-mysql8
|
name: test-mysql8
|
||||||
|
@ -147,20 +237,28 @@ depends_on:
|
||||||
- test-mysql
|
- test-mysql
|
||||||
steps:
|
steps:
|
||||||
- name: restore-cache
|
- name: restore-cache
|
||||||
image: drillster/drone-volume-cache
|
image: meltwater/drone-cache
|
||||||
|
pull: always
|
||||||
settings:
|
settings:
|
||||||
|
backend: "filesystem"
|
||||||
restore: true
|
restore: true
|
||||||
|
cache_key: "volume"
|
||||||
|
archive_format: "gzip"
|
||||||
mount:
|
mount:
|
||||||
- $GOPATH/pkg/mod
|
- pkg.mod
|
||||||
|
- pkg.build
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
path: /cache
|
path: /go
|
||||||
|
|
||||||
- name: test-mysql8
|
- name: test-mysql8
|
||||||
image: golang:1.13
|
image: golang:1.15
|
||||||
environment:
|
environment:
|
||||||
GO111MODULE: "on"
|
GO111MODULE: "on"
|
||||||
GOPROXY: "https://goproxy.io"
|
GOPROXY: "https://goproxy.io"
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
GOMODCACHE: '/drone/src/pkg.mod'
|
||||||
|
GOCACHE: '/drone/src/pkg.build'
|
||||||
TEST_MYSQL_HOST: mysql8
|
TEST_MYSQL_HOST: mysql8
|
||||||
TEST_MYSQL_CHARSET: utf8mb4
|
TEST_MYSQL_CHARSET: utf8mb4
|
||||||
TEST_MYSQL_DBNAME: xorm_test
|
TEST_MYSQL_DBNAME: xorm_test
|
||||||
|
@ -170,6 +268,29 @@ steps:
|
||||||
- make test-mysql
|
- make test-mysql
|
||||||
- TEST_CACHE_ENABLE=true make test-mysql
|
- TEST_CACHE_ENABLE=true make test-mysql
|
||||||
- TEST_QUOTE_POLICY=reserved make test-mysql
|
- TEST_QUOTE_POLICY=reserved make test-mysql
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /go
|
||||||
|
|
||||||
|
- name: rebuild-cache
|
||||||
|
image: meltwater/drone-cache:dev
|
||||||
|
pull: true
|
||||||
|
settings:
|
||||||
|
backend: "filesystem"
|
||||||
|
rebuild: true
|
||||||
|
cache_key: "volume"
|
||||||
|
archive_format: "gzip"
|
||||||
|
mount:
|
||||||
|
- pkg.mod
|
||||||
|
- pkg.build
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /go
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
host:
|
||||||
|
path: /var/lib/cache
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: mysql8
|
- name: mysql8
|
||||||
|
@ -179,11 +300,6 @@ services:
|
||||||
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
||||||
MYSQL_DATABASE: xorm_test
|
MYSQL_DATABASE: xorm_test
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: cache
|
|
||||||
host:
|
|
||||||
path: /tmp/cache
|
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: test-mariadb
|
name: test-mariadb
|
||||||
|
@ -191,20 +307,28 @@ depends_on:
|
||||||
- test-mysql8
|
- test-mysql8
|
||||||
steps:
|
steps:
|
||||||
- name: restore-cache
|
- name: restore-cache
|
||||||
image: drillster/drone-volume-cache
|
image: meltwater/drone-cache
|
||||||
|
pull: always
|
||||||
settings:
|
settings:
|
||||||
|
backend: "filesystem"
|
||||||
restore: true
|
restore: true
|
||||||
|
cache_key: "volume"
|
||||||
|
archive_format: "gzip"
|
||||||
mount:
|
mount:
|
||||||
- $GOPATH/pkg/mod
|
- pkg.mod
|
||||||
|
- pkg.build
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
path: /cache
|
path: /go
|
||||||
|
|
||||||
- name: test-mariadb
|
- name: test-mariadb
|
||||||
image: golang:1.13
|
image: golang:1.15
|
||||||
environment:
|
environment:
|
||||||
GO111MODULE: "on"
|
GO111MODULE: "on"
|
||||||
GOPROXY: "https://goproxy.io"
|
GOPROXY: "https://goproxy.io"
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
GOMODCACHE: '/drone/src/pkg.mod'
|
||||||
|
GOCACHE: '/drone/src/pkg.build'
|
||||||
TEST_MYSQL_HOST: mariadb
|
TEST_MYSQL_HOST: mariadb
|
||||||
TEST_MYSQL_CHARSET: utf8mb4
|
TEST_MYSQL_CHARSET: utf8mb4
|
||||||
TEST_MYSQL_DBNAME: xorm_test
|
TEST_MYSQL_DBNAME: xorm_test
|
||||||
|
@ -214,6 +338,29 @@ steps:
|
||||||
- make test-mysql
|
- make test-mysql
|
||||||
- TEST_CACHE_ENABLE=true make test-mysql
|
- TEST_CACHE_ENABLE=true make test-mysql
|
||||||
- TEST_QUOTE_POLICY=reserved make test-mysql
|
- TEST_QUOTE_POLICY=reserved make test-mysql
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /go
|
||||||
|
|
||||||
|
- name: rebuild-cache
|
||||||
|
image: meltwater/drone-cache:dev
|
||||||
|
pull: true
|
||||||
|
settings:
|
||||||
|
backend: "filesystem"
|
||||||
|
rebuild: true
|
||||||
|
cache_key: "volume"
|
||||||
|
archive_format: "gzip"
|
||||||
|
mount:
|
||||||
|
- pkg.mod
|
||||||
|
- pkg.build
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /go
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
host:
|
||||||
|
path: /var/lib/cache
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: mariadb
|
- name: mariadb
|
||||||
|
@ -223,11 +370,6 @@ services:
|
||||||
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
||||||
MYSQL_DATABASE: xorm_test
|
MYSQL_DATABASE: xorm_test
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: cache
|
|
||||||
host:
|
|
||||||
path: /tmp/cache
|
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: test-postgres
|
name: test-postgres
|
||||||
|
@ -235,21 +377,29 @@ depends_on:
|
||||||
- test-mariadb
|
- test-mariadb
|
||||||
steps:
|
steps:
|
||||||
- name: restore-cache
|
- name: restore-cache
|
||||||
image: drillster/drone-volume-cache
|
image: meltwater/drone-cache
|
||||||
|
pull: always
|
||||||
settings:
|
settings:
|
||||||
|
backend: "filesystem"
|
||||||
restore: true
|
restore: true
|
||||||
|
cache_key: "volume"
|
||||||
|
archive_format: "gzip"
|
||||||
mount:
|
mount:
|
||||||
- $GOPATH/pkg/mod
|
- pkg.mod
|
||||||
|
- pkg.build
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
path: /cache
|
path: /go
|
||||||
|
|
||||||
- name: test-postgres
|
- name: test-postgres
|
||||||
pull: default
|
pull: default
|
||||||
image: golang:1.13
|
image: golang:1.15
|
||||||
environment:
|
environment:
|
||||||
GO111MODULE: "on"
|
GO111MODULE: "on"
|
||||||
GOPROXY: "https://goproxy.io"
|
GOPROXY: "https://goproxy.io"
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
GOMODCACHE: '/drone/src/pkg.mod'
|
||||||
|
GOCACHE: '/drone/src/pkg.build'
|
||||||
TEST_PGSQL_HOST: pgsql
|
TEST_PGSQL_HOST: pgsql
|
||||||
TEST_PGSQL_DBNAME: xorm_test
|
TEST_PGSQL_DBNAME: xorm_test
|
||||||
TEST_PGSQL_USERNAME: postgres
|
TEST_PGSQL_USERNAME: postgres
|
||||||
|
@ -258,15 +408,21 @@ steps:
|
||||||
- make test-postgres
|
- make test-postgres
|
||||||
- TEST_CACHE_ENABLE=true make test-postgres
|
- TEST_CACHE_ENABLE=true make test-postgres
|
||||||
- TEST_QUOTE_POLICY=reserved make test-postgres
|
- TEST_QUOTE_POLICY=reserved make test-postgres
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /go
|
||||||
|
|
||||||
- name: test-postgres-schema
|
- name: test-postgres-schema
|
||||||
pull: default
|
pull: default
|
||||||
image: golang:1.13
|
image: golang:1.15
|
||||||
depends_on:
|
depends_on:
|
||||||
- test-postgres
|
- test-postgres
|
||||||
environment:
|
environment:
|
||||||
GO111MODULE: "on"
|
GO111MODULE: "on"
|
||||||
GOPROXY: "https://goproxy.io"
|
GOPROXY: "https://goproxy.io"
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
GOMODCACHE: '/drone/src/pkg.mod'
|
||||||
|
GOCACHE: '/drone/src/pkg.build'
|
||||||
TEST_PGSQL_HOST: pgsql
|
TEST_PGSQL_HOST: pgsql
|
||||||
TEST_PGSQL_SCHEMA: xorm
|
TEST_PGSQL_SCHEMA: xorm
|
||||||
TEST_PGSQL_DBNAME: xorm_test
|
TEST_PGSQL_DBNAME: xorm_test
|
||||||
|
@ -276,6 +432,29 @@ steps:
|
||||||
- make test-postgres
|
- make test-postgres
|
||||||
- TEST_CACHE_ENABLE=true make test-postgres
|
- TEST_CACHE_ENABLE=true make test-postgres
|
||||||
- TEST_QUOTE_POLICY=reserved make test-postgres
|
- TEST_QUOTE_POLICY=reserved make test-postgres
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /go
|
||||||
|
|
||||||
|
- name: rebuild-cache
|
||||||
|
image: meltwater/drone-cache:dev
|
||||||
|
pull: true
|
||||||
|
settings:
|
||||||
|
backend: "filesystem"
|
||||||
|
rebuild: true
|
||||||
|
cache_key: "volume"
|
||||||
|
archive_format: "gzip"
|
||||||
|
mount:
|
||||||
|
- pkg.mod
|
||||||
|
- pkg.build
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /go
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
host:
|
||||||
|
path: /var/lib/cache
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: pgsql
|
- name: pgsql
|
||||||
|
@ -286,11 +465,6 @@ services:
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
POSTGRES_PASSWORD: postgres
|
POSTGRES_PASSWORD: postgres
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: cache
|
|
||||||
host:
|
|
||||||
path: /tmp/cache
|
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: test-mssql
|
name: test-mssql
|
||||||
|
@ -298,21 +472,29 @@ depends_on:
|
||||||
- test-postgres
|
- test-postgres
|
||||||
steps:
|
steps:
|
||||||
- name: restore-cache
|
- name: restore-cache
|
||||||
image: drillster/drone-volume-cache
|
image: meltwater/drone-cache
|
||||||
|
pull: always
|
||||||
settings:
|
settings:
|
||||||
|
backend: "filesystem"
|
||||||
restore: true
|
restore: true
|
||||||
|
cache_key: "volume"
|
||||||
|
archive_format: "gzip"
|
||||||
mount:
|
mount:
|
||||||
- $GOPATH/pkg/mod
|
- pkg.mod
|
||||||
|
- pkg.build
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
path: /cache
|
path: /go
|
||||||
|
|
||||||
- name: test-mssql
|
- name: test-mssql
|
||||||
pull: default
|
pull: default
|
||||||
image: golang:1.13
|
image: golang:1.15
|
||||||
environment:
|
environment:
|
||||||
GO111MODULE: "on"
|
GO111MODULE: "on"
|
||||||
GOPROXY: "https://goproxy.io"
|
GOPROXY: "https://goproxy.io"
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
GOMODCACHE: '/drone/src/pkg.mod'
|
||||||
|
GOCACHE: '/drone/src/pkg.build'
|
||||||
TEST_MSSQL_HOST: mssql
|
TEST_MSSQL_HOST: mssql
|
||||||
TEST_MSSQL_DBNAME: xorm_test
|
TEST_MSSQL_DBNAME: xorm_test
|
||||||
TEST_MSSQL_USERNAME: sa
|
TEST_MSSQL_USERNAME: sa
|
||||||
|
@ -322,6 +504,29 @@ steps:
|
||||||
- TEST_CACHE_ENABLE=true make test-mssql
|
- TEST_CACHE_ENABLE=true make test-mssql
|
||||||
- TEST_QUOTE_POLICY=reserved make test-mssql
|
- TEST_QUOTE_POLICY=reserved make test-mssql
|
||||||
- TEST_MSSQL_DEFAULT_VARCHAR=NVARCHAR TEST_MSSQL_DEFAULT_CHAR=NCHAR make test-mssql
|
- TEST_MSSQL_DEFAULT_VARCHAR=NVARCHAR TEST_MSSQL_DEFAULT_CHAR=NCHAR make test-mssql
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /go
|
||||||
|
|
||||||
|
- name: rebuild-cache
|
||||||
|
image: meltwater/drone-cache:dev
|
||||||
|
pull: true
|
||||||
|
settings:
|
||||||
|
backend: "filesystem"
|
||||||
|
rebuild: true
|
||||||
|
cache_key: "volume"
|
||||||
|
archive_format: "gzip"
|
||||||
|
mount:
|
||||||
|
- pkg.mod
|
||||||
|
- pkg.build
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /go
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
host:
|
||||||
|
path: /var/lib/cache
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: mssql
|
- name: mssql
|
||||||
|
@ -332,11 +537,6 @@ services:
|
||||||
SA_PASSWORD: yourStrong(!)Password
|
SA_PASSWORD: yourStrong(!)Password
|
||||||
MSSQL_PID: Developer
|
MSSQL_PID: Developer
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: cache
|
|
||||||
host:
|
|
||||||
path: /tmp/cache
|
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: test-tidb
|
name: test-tidb
|
||||||
|
@ -344,21 +544,29 @@ depends_on:
|
||||||
- test-mssql
|
- test-mssql
|
||||||
steps:
|
steps:
|
||||||
- name: restore-cache
|
- name: restore-cache
|
||||||
image: drillster/drone-volume-cache
|
image: meltwater/drone-cache
|
||||||
|
pull: always
|
||||||
settings:
|
settings:
|
||||||
|
backend: "filesystem"
|
||||||
restore: true
|
restore: true
|
||||||
|
cache_key: "volume"
|
||||||
|
archive_format: "gzip"
|
||||||
mount:
|
mount:
|
||||||
- $GOPATH/pkg/mod
|
- pkg.mod
|
||||||
|
- pkg.build
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
path: /cache
|
path: /go
|
||||||
|
|
||||||
- name: test-tidb
|
- name: test-tidb
|
||||||
pull: default
|
pull: default
|
||||||
image: golang:1.13
|
image: golang:1.15
|
||||||
environment:
|
environment:
|
||||||
GO111MODULE: "on"
|
GO111MODULE: "on"
|
||||||
GOPROXY: "https://goproxy.io"
|
GOPROXY: "https://goproxy.io"
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
GOMODCACHE: '/drone/src/pkg.mod'
|
||||||
|
GOCACHE: '/drone/src/pkg.build'
|
||||||
TEST_TIDB_HOST: "tidb:4000"
|
TEST_TIDB_HOST: "tidb:4000"
|
||||||
TEST_TIDB_DBNAME: xorm_test
|
TEST_TIDB_DBNAME: xorm_test
|
||||||
TEST_TIDB_USERNAME: root
|
TEST_TIDB_USERNAME: root
|
||||||
|
@ -367,17 +575,35 @@ steps:
|
||||||
- make test-tidb
|
- make test-tidb
|
||||||
- TEST_CACHE_ENABLE=true make test-tidb
|
- TEST_CACHE_ENABLE=true make test-tidb
|
||||||
- TEST_QUOTE_POLICY=reserved make test-tidb
|
- TEST_QUOTE_POLICY=reserved make test-tidb
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /go
|
||||||
|
|
||||||
|
- name: rebuild-cache
|
||||||
|
image: meltwater/drone-cache:dev
|
||||||
|
pull: true
|
||||||
|
settings:
|
||||||
|
backend: "filesystem"
|
||||||
|
rebuild: true
|
||||||
|
cache_key: "volume"
|
||||||
|
archive_format: "gzip"
|
||||||
|
mount:
|
||||||
|
- pkg.mod
|
||||||
|
- pkg.build
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /go
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
host:
|
||||||
|
path: /var/lib/cache
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: tidb
|
- name: tidb
|
||||||
pull: default
|
pull: default
|
||||||
image: pingcap/tidb:v3.0.3
|
image: pingcap/tidb:v3.0.3
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: cache
|
|
||||||
host:
|
|
||||||
path: /tmp/cache
|
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: test-cockroach
|
name: test-cockroach
|
||||||
|
@ -385,21 +611,29 @@ depends_on:
|
||||||
- test-tidb
|
- test-tidb
|
||||||
steps:
|
steps:
|
||||||
- name: restore-cache
|
- name: restore-cache
|
||||||
image: drillster/drone-volume-cache
|
image: meltwater/drone-cache
|
||||||
|
pull: always
|
||||||
settings:
|
settings:
|
||||||
|
backend: "filesystem"
|
||||||
restore: true
|
restore: true
|
||||||
|
cache_key: "volume"
|
||||||
|
archive_format: "gzip"
|
||||||
mount:
|
mount:
|
||||||
- $GOPATH/pkg/mod
|
- pkg.mod
|
||||||
|
- pkg.build
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
path: /cache
|
path: /go
|
||||||
|
|
||||||
- name: test-cockroach
|
- name: test-cockroach
|
||||||
pull: default
|
pull: default
|
||||||
image: golang:1.13
|
image: golang:1.15
|
||||||
environment:
|
environment:
|
||||||
GO111MODULE: "on"
|
GO111MODULE: "on"
|
||||||
GOPROXY: "https://goproxy.io"
|
GOPROXY: "https://goproxy.io"
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
GOMODCACHE: '/drone/src/pkg.mod'
|
||||||
|
GOCACHE: '/drone/src/pkg.build'
|
||||||
TEST_COCKROACH_HOST: "cockroach:26257"
|
TEST_COCKROACH_HOST: "cockroach:26257"
|
||||||
TEST_COCKROACH_DBNAME: xorm_test
|
TEST_COCKROACH_DBNAME: xorm_test
|
||||||
TEST_COCKROACH_USERNAME: root
|
TEST_COCKROACH_USERNAME: root
|
||||||
|
@ -408,6 +642,29 @@ steps:
|
||||||
- sleep 10
|
- sleep 10
|
||||||
- make test-cockroach
|
- make test-cockroach
|
||||||
- TEST_CACHE_ENABLE=true make test-cockroach
|
- TEST_CACHE_ENABLE=true make test-cockroach
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /go
|
||||||
|
|
||||||
|
- name: rebuild-cache
|
||||||
|
image: meltwater/drone-cache:dev
|
||||||
|
pull: true
|
||||||
|
settings:
|
||||||
|
backend: "filesystem"
|
||||||
|
rebuild: true
|
||||||
|
cache_key: "volume"
|
||||||
|
archive_format: "gzip"
|
||||||
|
mount:
|
||||||
|
- pkg.mod
|
||||||
|
- pkg.build
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /go
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
host:
|
||||||
|
path: /var/lib/cache
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: cockroach
|
- name: cockroach
|
||||||
|
@ -416,11 +673,6 @@ services:
|
||||||
commands:
|
commands:
|
||||||
- /cockroach/cockroach start --insecure
|
- /cockroach/cockroach start --insecure
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: cache
|
|
||||||
host:
|
|
||||||
path: /tmp/cache
|
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: merge_coverage
|
name: merge_coverage
|
||||||
|
@ -437,7 +689,7 @@ depends_on:
|
||||||
steps:
|
steps:
|
||||||
- name: merge_coverage
|
- name: merge_coverage
|
||||||
pull: default
|
pull: default
|
||||||
image: golang:1.13
|
image: golang:1.15
|
||||||
environment:
|
environment:
|
||||||
GO111MODULE: "on"
|
GO111MODULE: "on"
|
||||||
GOPROXY: "https://goproxy.io"
|
GOPROXY: "https://goproxy.io"
|
||||||
|
|
Loading…
Reference in New Issue