forked from tediousjs/node-mssql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
63 lines (49 loc) · 1.65 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
version: "{build}"
environment:
matrix:
- nodejs_version: "6"
- nodejs_version: "8"
- nodejs_version: "10"
- nodejs_version: "12"
- nodejs_version: "14"
install:
# https://www.appveyor.com/docs/lang/nodejs-iojs/#installing-any-version-of-nodejs-or-iojs
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:PLATFORM
- npm install
- IF %nodejs_version% GEQ 10 (npm install msnodesqlv8@^1.1) ELSE (npm install msnodesqlv8@^0.6.12)
platform:
- x86
- x64
cache:
- node_modules
build: off
before_test:
- sc config sqlbrowser start= auto
- net start sqlbrowser
test_script:
- node --version
- npm --version
- cmd: |
SET EXITVAL=0
npm run-script test-unit || SET EXITVAL=1
SET MSSQL_VERSION=2008
powershell %cd%\test\scripts\appveyor.ps1 SQL2008R2SP2
npm run-script test-tedious || SET EXITVAL=1
npm run-script test-msnodesqlv8 || SET EXITVAL=1
net stop MSSQL$SQL2008R2SP2
SET MSSQL_VERSION=2012
powershell %cd%\test\scripts\appveyor.ps1 SQL2012SP1
npm run-script test-tedious || SET EXITVAL=1
npm run-script test-msnodesqlv8 || SET EXITVAL=1
net stop MSSQL$SQL2012SP1
SET MSSQL_VERSION=2014
powershell %cd%\test\scripts\appveyor.ps1 SQL2014
npm run-script test-tedious || SET EXITVAL=1
npm run-script test-msnodesqlv8 || SET EXITVAL=1
net stop MSSQL$SQL2014
SET MSSQL_VERSION=2016
powershell %cd%\test\scripts\appveyor.ps1 SQL2016
npm run-script test-tedious || SET EXITVAL=1
npm run-script test-msnodesqlv8 || SET EXITVAL=1
net stop MSSQL$SQL2016
EXIT /B %EXITVAL%