tedious
Version:
A TDS driver, for connecting to MS SQLServer databases.
73 lines (53 loc) • 1.98 kB
YAML
version: "{build}"
# Newer Node.js releases require Windows 10 / Windows Server 2016 or higher.
# The default AppVeyor image (Visual Studio 2015) runs on Windows Server 2012 R2,
# so pin a newer image. SQL Server 2017 is still pre-installed on this one.
image: Visual Studio 2022
environment:
matrix:
- nodejs_version: "22"
- nodejs_version: "24"
- nodejs_version: "26"
branches:
only:
- master
- /^maint\/.+/
- /v\d+\.\d+\.\d+/
install:
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) x64
- npm install
services:
- mssql2017
cache:
- node_modules
build: off
before_test:
- npm prune
- sc config sqlbrowser start= auto
- net start sqlbrowser
test_script:
- node --version
- npm --version
- pwsh: |-
$ErrorActionPreference = "Stop"
npm run-script test
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
Copy-Item -Force test/config.appveyor.ts test/config.ts
$env:NTLM_USERNAME = $env:USERNAME
$env:NTLM_PASSWORD = [Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon", "DefaultPassword", '')
$env:NTLM_DOMAIN = $env:COMPUTERNAME
$env:TEDIOUS_TDS_VERSION = '7_4'
npm run-script test-integration
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
$env:TEDIOUS_TDS_VERSION = '7_3_B'
npm run-script test-integration
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
$env:TEDIOUS_TDS_VERSION = '7_3_A'
npm run-script test-integration
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
$env:TEDIOUS_TDS_VERSION = '7_2'
npm run-script test-integration
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
$env:TEDIOUS_TDS_VERSION = '7_1'
npm run-script test-integration
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }