forked from TimelordUK/node-sqlserver-v8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
63 lines (49 loc) · 1.26 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: 1.0.{build}
image:
- Visual Studio 2022
- Ubuntu2004
platform:
- x64
environment:
matrix:
- nodejs_version: 22
- nodejs_version: 20
test_script:
- ps: Write-Host "msnodesqlv8 test script"
for:
-
matrix:
only:
- image: Visual Studio 2022
clone_folder: c:\projects\node_modules\msnodesqlv8
before_test:
- cmd: sc config sqlbrowser start= auto
- cmd: net start sqlbrowser
install:
- ps: tool\install-driver.ps1
- npm install
build_script:
- cmd: node --version
- cmd: npm run build
test_script:
- ps: Get-OdbcDriver
- cmd: tool\appveyor-win.cmd
-
matrix:
only:
- image: Ubuntu2004
platform: x64
services:
- mssql
clone_folder: /home/appveyor/projects/node_modules/msnodesqlv8
build_script:
- sh: node --version
- sh: npm run build
- sh: chmod 775 /home/appveyor/projects/node_modules/msnodesqlv8/tool/install_openssl.sh
- sh: /home/appveyor/projects/node_modules/msnodesqlv8/tool/install_openssl.sh
test_script:
- sh: "sleep 4"
- sh: "./node_modules/.bin/env-cmd -e appv-ubuntu ./node_modules/.bin/mocha 2>&1"
install:
- nvm install $nodejs_version
- npm install