@@ -2,23 +2,37 @@ version: 1.0-{build}
2
2
os : Visual Studio 2015
3
3
environment :
4
4
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
5
10
- nodejs_version : 8.6
6
11
platform : x64
12
+ npm_version : 6.4.1
13
+ nan_version : 2.13.2
14
+ pre_gyp_version : 0.12.0
7
15
- nodejs_version : 6.11
8
16
platform : x64
17
+ npm_version : 6.4.1
18
+ nan_version : 2.13.2
19
+ pre_gyp_version : 0.12.0
9
20
- nodejs_version : 4.8
10
21
platform : x64
22
+ npm_version : 5.5.1
23
+ nan_version : 2.7.0
24
+ pre_gyp_version : 0.6.39
11
25
12
26
cache :
13
27
- ' %APPDATA%\npm-cache'
14
28
install :
15
29
- ps : Install-Product node $env:nodejs_version $env:platform
16
30
# Upgrade npm
17
31
# - npm install -g npm
18
- - npm install -g npm@5.5.1
32
+ - npm install -g npm@%npm_version%
19
33
- 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%
22
36
- npm install -g node-pre-gyp-github
23
37
24
38
build_script :
@@ -29,8 +43,12 @@ test: off
29
43
artifacts :
30
44
- path : .\build\stage
31
45
on_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