@@ -2,23 +2,37 @@ version: 1.0-{build}
22os : Visual Studio 2015
33environment :
44 matrix :
5+ - nodejs_version : 10.15
6+ platform : x64
7+ npm_version : 6.4.1
8+ nan_version : 2.13.2
9+ pre_gyp_version : 0.12.0
510 - nodejs_version : 8.6
611 platform : x64
12+ npm_version : 6.4.1
13+ nan_version : 2.13.2
14+ pre_gyp_version : 0.12.0
715 - nodejs_version : 6.11
816 platform : x64
17+ npm_version : 6.4.1
18+ nan_version : 2.13.2
19+ pre_gyp_version : 0.12.0
920 - nodejs_version : 4.8
1021 platform : x64
22+ npm_version : 5.5.1
23+ nan_version : 2.7.0
24+ pre_gyp_version : 0.6.39
1125
1226cache :
1327 - ' %APPDATA%\npm-cache'
1428install :
1529 - ps : Install-Product node $env:nodejs_version $env:platform
1630 # Upgrade npm
1731 # - npm install -g npm
18- - npm install -g npm@5.5.1
32+ - npm install -g npm@%npm_version%
1933 - set PATH=%APPDATA%\npm;%PATH%
20- - npm i nan@2.7.0
21- - npm install -g node-pre-gyp@0.6.39
34+ - npm i nan@%nan_version%
35+ - npm install -g node-pre-gyp@%pre_gyp_version%
2236 - npm install -g node-pre-gyp-github
2337
2438build_script :
@@ -29,8 +43,12 @@ test: off
2943artifacts :
3044 - path : .\build\stage
3145on_success :
32- - git config --global credential.helper store
33- -
ps :
Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:NODE_PRE_GYP_GITHUB_TOKEN):[email protected] `n" 34- -
git config --global user.email "[email protected] " 35- - git config --global user.name "MatthD"
36- - node-pre-gyp-github publish --release
46+ - ps : |
47+ if ($env:NODE_PRE_GYP_GITHUB_TOKEN)
48+ {
49+ git config --global credential.helper store
50+ Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:NODE_PRE_GYP_GITHUB_TOKEN):[email protected] `n" 51+ git config --global user.email "[email protected] " 52+ git config --global user.name "MatthD"
53+ node-pre-gyp-github publish --release
54+ }
0 commit comments