diff --git a/.travis.yml b/.travis.yml index bc25138..19682a6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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' \ No newline at end of file