forked from tediousjs/tedious
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
72 lines (53 loc) · 1.36 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
68
69
70
71
72
version: "{build}"
environment:
matrix:
- nodejs_version: "6"
- nodejs_version: "8"
- nodejs_version: "9"
- nodejs_version: "10"
branches:
only:
- master
- /^maint\/.+/
- /v\d+\.\d+\.\d+/
install:
- ps: Install-Product node $env:nodejs_version
- npm install
services:
- mssql2017
cache:
- node_modules
build: off
before_test:
- npm prune
- sc config sqlbrowser start= auto
- net start sqlbrowser
- mkdir C:\Users\appveyor\.tedious
- ps: >-
Set-Content -Value '{
"config": {
"server": "localhost",
"userName": "sa",
"password": "Password12!",
"options": {
"database": "master"
}
}
}' -Path C:\Users\appveyor\.tedious\test-connection.json
test_script:
- node --version
- npm --version
- cmd: |
SET EXITVAL=0
npm run-script test || SET EXITVAL=1
SET TEDIOUS_TDS_VERSION=7_4
npm run-script test-integration || SET EXITVAL=1
SET TEDIOUS_TDS_VERSION=7_3_B
npm run-script test-integration || SET EXITVAL=1
SET TEDIOUS_TDS_VERSION=7_3_A
npm run-script test-integration || SET EXITVAL=1
SET TEDIOUS_TDS_VERSION=7_2
npm run-script test-integration || SET EXITVAL=1
SET TEDIOUS_TDS_VERSION=7_1
npm run-script test-integration || SET EXITVAL=1
EXIT /B %EXITVAL%