-
Notifications
You must be signed in to change notification settings - Fork 437
/
appveyor.yml
67 lines (49 loc) · 1.67 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: "{build}"
environment:
matrix:
- nodejs_version: "18"
- nodejs_version: "20"
- nodejs_version: "21"
branches:
only:
- master
- /^maint\/.+/
- /v\d+\.\d+\.\d+/
install:
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version)
- 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) }