2017-05-03 17:47:01 +00:00
|
|
|
language: node_js
|
2017-05-14 13:08:18 +00:00
|
|
|
|
2017-05-03 17:47:01 +00:00
|
|
|
node_js:
|
|
|
|
- stable
|
|
|
|
- 6
|
|
|
|
- 5
|
2017-05-03 17:51:35 +00:00
|
|
|
- 4
|
2017-05-14 13:08:18 +00:00
|
|
|
|
2017-05-14 13:00:03 +00:00
|
|
|
sudo: required
|
2017-05-14 13:08:18 +00:00
|
|
|
|
2017-05-14 13:00:03 +00:00
|
|
|
services:
|
|
|
|
- docker
|
2017-05-14 13:08:18 +00:00
|
|
|
|
2017-05-14 12:53:06 +00:00
|
|
|
env:
|
2017-05-14 13:00:03 +00:00
|
|
|
- MSSQLSkip=0 MSSQLHost=localhost MSSQLPort=1433 MSSQLUsername=sa MSSQLPassword=!Passw0rd MSSQLDatabase=test
|
2017-05-14 13:08:18 +00:00
|
|
|
|
|
|
|
before_install:
|
2017-05-14 13:00:03 +00:00
|
|
|
- docker pull microsoft/mssql-server-linux
|
2017-05-14 12:53:06 +00:00
|
|
|
- docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=!Passw0rd' -p 1433:1433 -d microsoft/mssql-server-linux
|
2017-05-14 13:08:18 +00:00
|
|
|
- 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:
|
2017-05-03 17:51:35 +00:00
|
|
|
- npm run typings-install
|
2017-05-14 12:53:06 +00:00
|
|
|
- tsc
|
|
|
|
- sqlcmd -S $MSSQLHost,$MSSQLPort -U $MSSQLUsername -P $MSSQLPassword -Q 'CREATE DATABASE TEST'
|