forked from ItsClemi/node-odbc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
88 lines (69 loc) · 2.01 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
-
branches:
only:
- master
os: Visual Studio 2015
configuration: release
services:
- mssql2016
# - mysql
# - postgresql
platform:
- x64
- x86
version: "{build}"
build: off
clone_folder: c:\projects\node_modules\node-odbc
init:
- cmd: >-
subst s: c:\projects
- ps: set-location -path s:\node_modules\node-odbc
cache:
- '%userprofile%\.node-gyp'
- '%AppData%\npm-cache'
environment:
SKIP_NODE_ODBC_BINARY_DOWNLOAD_ON_CI: true
NODE_ODBC_TEST_USE_APPVEYOR_CONFIG: true
matrix:
- nodejs_version: 6
GYP_MSVS_VERSION: 2015
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- nodejs_version: 7
GYP_MSVS_VERSION: 2015
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- nodejs_version: 8
GYP_MSVS_VERSION: 2015
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
install:
- ps: Install-Product node $env:nodejs_version $env:platform
- node --version
- npm --version
- npm install
- cmd: SET PATH=%cd%\node_modules\.bin\;%PATH%
- cmd: typings install
build_script:
- cmd: tsc -p lib
- cmd: tsc -p test
- cmd: tsc -p scripts
- npm run build
test: off
test_script:
- npm run test
before_deploy:
- ps: >-
Get-ChildItem .\vendor\**\*.node | % {
( $BindingName = $_.FullName ).Split('\\') |
Select-Object -Last 2 | Select-Object -First 1 } |
.{ process { (
@( $BindingName,
( ( $_, "node-odbc.node" ) -join '_' ) ),
@( ".\build\Release\node-odbc.pdb", ( ( $_, "node-odbc.pdb" ) -join '_' ) )
) } } | % { Push-AppveyorArtifact $_[0] -FileName $_[1] }
deploy:
- provider: GitHub
description: $(APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED)
artifact:
auth_token:
secure: 3nVOtEyNM2nI0/3mVltASP4rtBfLXWLYeqfjRfnIITF+AyT6gKf99JsaPiNERx4f
on:
appveyor_repo_tag: true # deploy on tag push only