1 | environment:
|
2 | matrix:
|
3 | - nodejs_version: "10"
|
4 | platform: x64
|
5 | - nodejs_version: "10"
|
6 | platform: x86
|
7 | - nodejs_version: "11"
|
8 | platform: x64
|
9 | - nodejs_version: "11"
|
10 | platform: x86
|
11 | - nodejs_version: "12"
|
12 | platform: x64
|
13 | - nodejs_version: "12"
|
14 | platform: x86
|
15 | - nodejs_version: "13"
|
16 | platform: x64
|
17 | - nodejs_version: "13"
|
18 | platform: x86
|
19 | - nodejs_version: "14"
|
20 | platform: x64
|
21 | - nodejs_version: "14"
|
22 | platform: x86
|
23 |
|
24 | install:
|
25 | - where npm
|
26 | - where node
|
27 | - ps: Install-Product node $env:nodejs_version $env:platform
|
28 | - 'npm install -g npm@latest'
|
29 |
|
30 | build: off
|
31 |
|
32 | artifacts:
|
33 | - path: 'build/stage/**/bcrypt*.tar.gz'
|
34 |
|
35 | test_script:
|
36 | - node --version
|
37 | - npm --version
|
38 | - npm test
|
39 |
|
40 | after_test:
|
41 | - .\node_modules\.bin\node-pre-gyp package
|
42 |
|
43 | on_success:
|
44 | - ps: >
|
45 | if ($env:NODE_PRE_GYP_GITHUB_TOKEN -ne $null -and $env:APPVEYOR_REPO_TAG_NAME -match '^v(0|[1-9]+)\.(0|[1-9]+)\.(0|[1-9]+)(-\w)?$') {
|
46 | echo "Publishing $env:APPVEYOR_REPO_TAG_NAME"
|
47 | npm install node-pre-gyp-github@1.4.3
|
48 | ./node_modules/.bin/node-pre-gyp-github publish --release
|
49 | }
|
50 |
|
51 |
|
\ | No newline at end of file |