2019-03-29 18:54:35 +01:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
workspace:
|
|
|
|
base: /go
|
|
|
|
path: src/src.techknowlogick.com/xormigrate
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: fetch-and-test
|
2020-02-14 17:34:25 +01:00
|
|
|
image: golang:1.13
|
2019-03-29 18:54:35 +01:00
|
|
|
environment:
|
|
|
|
GO111MODULE: on
|
|
|
|
commands:
|
|
|
|
- go get ./...
|
|
|
|
- go test -v -tags sqlite
|
|
|
|
- go test -v -tags mysql
|
|
|
|
- go test -v -tags postgresql
|
|
|
|
- go test -v -tags sqlserver
|
|
|
|
|
|
|
|
services:
|
|
|
|
- name: pgsql
|
2020-02-14 17:34:25 +01:00
|
|
|
image: postgres:9.6
|
2019-03-29 18:54:35 +01:00
|
|
|
environment:
|
|
|
|
POSTGRES_DB: test
|
|
|
|
POSTGRES_PASSWORD: postgres
|
|
|
|
|
|
|
|
- name: mysql
|
|
|
|
image: mysql:5.7
|
|
|
|
environment:
|
|
|
|
MYSQL_DATABASE: test
|
|
|
|
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
|
|
|
|
|
|
|
- name: mssql
|
|
|
|
image: microsoft/mssql-server-linux:latest
|
|
|
|
environment:
|
|
|
|
ACCEPT_EULA: Y
|
|
|
|
SA_PASSWORD: MwantsaSecurePassword1
|
|
|
|
MSSQL_PID: Standard
|