forked from xdenser/node-firebird-libfbclient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
67 lines (58 loc) · 2.2 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
# http://www.appveyor.com/docs/appveyor-yml
# Test against these versions of Io.js and Node.js.
environment:
fb_download: https://github.com/xdenser/files/blob/master/fb25.7z?raw=true
fb_start: .\bin\fb_inet_server.exe -a -m
matrix:
# lts
- nodejs_version: "10"
- nodejs_version: "12"
- nodejs_version: "14"
# stable
- nodejs_version: "15"
# Install scripts. (runs after repo cloning)
install:
# Get the latest stable version of Node 0.STABLE.latest
- ps: if($env:nodejs_version -ne "0.8") {Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version)}
- IF NOT %nodejs_version% == 1 npm -g install npm
- IF NOT %nodejs_version% == 1 set PATH=%APPDATA%\npm;%PATH%
# Typical npm stuff.
- npm install
- npm install nodeunit
#- IF %nodejs_version% == 0.8 node node_modules\node-gyp\bin\node-gyp.js rebuild --directory test
#- IF NOT %nodejs_version% == 0.8 npm run rebuild-tests
# Post-install test scripts.
test_script:
# Output useful info for debugging.
- node --version
- npm --version
- ps: $sourceDir = Resolve-Path .
- ps: $startTest = "$sourceDir\node_modules\.bin\nodeunit.cmd tests/def/"
#- ps: iex $startTest
- .\node_modules\.bin\nodeunit.cmd tests/def/"
# run tests
#- IF NOT %nodejs_version% == 1 npm test
#- IF %nodejs_version% == 1 iojs node_modules\tap\bin\tap.js --gc test\js\*-test.js
# Don't actually build.
build: off
before_test:
- ps: $sourceDir = Resolve-Path .
- ps: $testdbDir = "$sourceDir\build\test_db"
- ps: $createDb = "$sourceDir\tests\createTestDB.sql"
- ps: $isql = "c:\firebird\server\bin\isql.exe -input $createDb"
- ps: mkdir C:\firebird | Out-Null
- ps: cd C:\firebird
- ps: Start-FileDownload "$env:fb_download" | Out-Null
- ps: 7z x ($env:fb_download -replace '.+/([^/]+)\?raw=true','$1')
- ps: ls C:\firebird\server
- ps: iex "C:\firebird\server\$env:fb_start"
- ps: sleep -s 5
- ps: ni firebird.log -ItemType File | Out-Null
- ps: mkdir $testdbDir
- ps: cd $testdbDir
- ps: iex $isql
- ps: ls $testdbDir
- ps: cd $sourceDir
- ps: cp c:\firebird\server\bin\fbclient.dll $sourceDir\build\Release\
# Set build version format here instead of in the admin panel.
version: "{build}"