travis CI fix2

This commit is contained in:
Kononnable 2017-05-14 15:08:18 +02:00
parent 339f9ef28b
commit 278c9c21ca

View File

@ -1,17 +1,28 @@
language: node_js
node_js:
- stable
- 6
- 5
- 4
sudo: required
services:
- docker
env:
- MSSQLSkip=0 MSSQLHost=localhost MSSQLPort=1433 MSSQLUsername=sa MSSQLPassword=!Passw0rd MSSQLDatabase=test
before_script:
before_install:
- docker pull microsoft/mssql-server-linux
- docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=!Passw0rd' -p 1433:1433 -d microsoft/mssql-server-linux
- curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
- curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list
- sudo apt-get update
- sudo apt-get install mssql-tools
before_script:
- npm run typings-install
- tsc
- sqlcmd -S $MSSQLHost,$MSSQLPort -U $MSSQLUsername -P $MSSQLPassword -Q 'CREATE DATABASE TEST'