不要怂,就是干,撸起袖子干!

Commit c513f17f by Jan Aagaard Meier

Appveyor setup for v3

1 parent 1a8cb038
Showing with 78 additions and 10 deletions
...@@ -18,7 +18,6 @@ env: ...@@ -18,7 +18,6 @@ env:
- DIALECT=postgres-native - DIALECT=postgres-native
- DIALECT=sqlite - DIALECT=sqlite
- DIALECT=mariadb - DIALECT=mariadb
- DIALECT=mssql
addons: addons:
postgresql: "9.4" postgresql: "9.4"
...@@ -31,15 +30,6 @@ before_script: ...@@ -31,15 +30,6 @@ before_script:
script: script:
- "npm test" - "npm test"
matrix:
fast_finish: true
include:
- node_js: "0.10"
env: COVERAGE=true
allow_failures:
- node_js: "0.10"
env: COVERAGE=true
branches: branches:
only: only:
- master - master
......
Set-Service sqlbrowser -StartupType auto
Start-Service sqlbrowser
[reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo") | Out-Null
[reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.SqlWmiManagement") | Out-Null
$wmi = New-Object('Microsoft.SqlServer.Management.Smo.Wmi.ManagedComputer')
$tcp = $wmi.GetSmoObject("ManagedComputer[@Name='${env:computername}']/ServerInstance[@Name='SQL2016']/ServerProtocol[@Name='Tcp']")
$tcp.IsEnabled = $true
$tcp.Alter()
$wmi = New-Object('Microsoft.SqlServer.Management.Smo.Wmi.ManagedComputer')
$ipall = $wmi.GetSmoObject("ManagedComputer[@Name='${env:computername}']/ServerInstance[@Name='SQL2016']/ServerProtocol[@Name='Tcp']/IPAddress[@Name='IPAll']")
$port = $ipall.IPAddressProperties.Item("TcpDynamicPorts").Value
$config = @{
instanceName = "SQL2016"
host = "localhost"
username = "sa"
password = "Password12!"
port = $port
database = "master"
dialectOptions = @{
requestTimeout = 25000
cryptoCredentialsDetails = @{
ciphers = "RC4-MD5"
}
}
pool = @{
max = 5
idle = 3000
}
}
$json = $config | ConvertTo-Json -Depth 3
# cannot use Out-File because it outputs a BOM
[IO.File]::WriteAllLines((Join-Path $pwd "test\config\mssql.json"), $json)
version: '{build}'
platform:
- x64
services:
- mssql2016
shallow_clone: true
cache:
- node_modules
environment:
matrix:
- {NODE_VERSION: 0.12, DIALECT: mssql}
- {NODE_VERSION: 0.10, DIALECT: mssql}
install:
- ps: Install-Product node $env:NODE_VERSION x64
- ps: |
$pkg = ConvertFrom-Json (Get-Content -Raw package.json)
$pkg.devDependencies.PSObject.Properties.Remove('sqlite3')
$pkg.devDependencies.PSObject.Properties.Remove('pg-native')
ConvertTo-Json $pkg | Out-File package.json -Encoding UTF8
- npm install
build: off
before_test:
- ps: . .\appveyor-setup.ps1
test_script:
- npm test
branches:
only:
- master
- v3
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!