fix mssql drone ci

This commit is contained in:
Lunny Xiao 2018-10-09 14:21:42 +08:00
parent dd347f82e8
commit 8870afedb7
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 8 additions and 3 deletions

View File

@ -31,9 +31,8 @@ services:
- ACCEPT_EULA=Y
- SA_PASSWORD=yourStrong(!)Password
- MSSQL_PID=Developer
commands:
- echo 'CREATE DATABASE xorm_test' > create.sql
- /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "yourStrong(!)Password" -i "create.sql"
when:
event: [push, tag, pull_request]
matrix:
GO_VERSION:
@ -54,6 +53,12 @@ pipeline:
- |
psql -U postgres -d xorm_test -h pgsql \
-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:
image: golang:${GO_VERSION}