1 | version: "{build}"
|
2 |
|
3 | environment:
|
4 | matrix:
|
5 | - nodejs_version: "18"
|
6 | - nodejs_version: "20"
|
7 | - nodejs_version: "21"
|
8 |
|
9 | branches:
|
10 | only:
|
11 | - master
|
12 | - /^maint\/.+/
|
13 | - /v\d+\.\d+\.\d+/
|
14 |
|
15 | install:
|
16 | - ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version)
|
17 | - npm install
|
18 |
|
19 | services:
|
20 | - mssql2017
|
21 |
|
22 | cache:
|
23 | - node_modules
|
24 |
|
25 | build: off
|
26 |
|
27 | before_test:
|
28 | - npm prune
|
29 |
|
30 | - sc config sqlbrowser start= auto
|
31 | - net start sqlbrowser
|
32 |
|
33 | - mkdir C:\Users\appveyor\.tedious
|
34 | - ps: >-
|
35 | Set-Content -Value $('{
|
36 | "config": {
|
37 | "server": "localhost",
|
38 | "authentication": {
|
39 | "type": "default",
|
40 | "options": {
|
41 | "userName": "sa",
|
42 | "password": "Password12!"
|
43 | }
|
44 | },
|
45 | "options": {
|
46 | "database": "master",
|
47 | "trustServerCertificate": true
|
48 | }
|
49 | },
|
50 |
|
51 | "ntlm": {
|
52 | "server": "localhost",
|
53 | "authentication": {
|
54 | "type": "ntlm",
|
55 | "options": {
|
56 | "userName": "' + $env:username + '",
|
57 | "password": "' + [Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon", "DefaultPassword", '') + '",
|
58 | "domain": "' + $env:computername + '"
|
59 | }
|
60 | },
|
61 | "options": {
|
62 | "database": "master",
|
63 | "trustServerCertificate": true
|
64 | }
|
65 | }
|
66 | }') -Path C:\Users\appveyor\.tedious\test-connection.json
|
67 |
|
68 |
|
69 | test_script:
|
70 | - node --version
|
71 | - npm --version
|
72 |
|
73 | - cmd: |
|
74 | SET EXITVAL=0
|
75 |
|
76 | npm run-script test || SET EXITVAL=1
|
77 |
|
78 | SET TEDIOUS_TDS_VERSION=7_4
|
79 | npm run-script test-integration || SET EXITVAL=1
|
80 |
|
81 | SET TEDIOUS_TDS_VERSION=7_3_B
|
82 | npm run-script test-integration || SET EXITVAL=1
|
83 |
|
84 | SET TEDIOUS_TDS_VERSION=7_3_A
|
85 | npm run-script test-integration || SET EXITVAL=1
|
86 |
|
87 | SET TEDIOUS_TDS_VERSION=7_2
|
88 | npm run-script test-integration || SET EXITVAL=1
|
89 |
|
90 | SET TEDIOUS_TDS_VERSION=7_1
|
91 | npm run-script test-integration || SET EXITVAL=1
|
92 |
|
93 | EXIT /B %EXITVAL%
|
94 |
|
\ | No newline at end of file |