fix mssql drone ci
This commit is contained in:
parent
dd347f82e8
commit
8870afedb7
11
.drone.yml
11
.drone.yml
|
@ -31,9 +31,8 @@ services:
|
||||||
- ACCEPT_EULA=Y
|
- ACCEPT_EULA=Y
|
||||||
- SA_PASSWORD=yourStrong(!)Password
|
- SA_PASSWORD=yourStrong(!)Password
|
||||||
- MSSQL_PID=Developer
|
- MSSQL_PID=Developer
|
||||||
commands:
|
when:
|
||||||
- echo 'CREATE DATABASE xorm_test' > create.sql
|
event: [push, tag, pull_request]
|
||||||
- /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "yourStrong(!)Password" -i "create.sql"
|
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
GO_VERSION:
|
GO_VERSION:
|
||||||
|
@ -54,6 +53,12 @@ pipeline:
|
||||||
- |
|
- |
|
||||||
psql -U postgres -d xorm_test -h pgsql \
|
psql -U postgres -d xorm_test -h pgsql \
|
||||||
-c "create schema xorm;"
|
-c "create schema xorm;"
|
||||||
|
|
||||||
|
init_mssql:
|
||||||
|
image: microsoft/mssql-server-linux:2017-CU11
|
||||||
|
commands:
|
||||||
|
- echo 'CREATE DATABASE xorm_test' > create.sql
|
||||||
|
- /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "yourStrong(!)Password" -i "create.sql"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
image: golang:${GO_VERSION}
|
image: golang:${GO_VERSION}
|
||||||
|
|
Loading…
Reference in New Issue