1 | platform:
|
2 | - x64
|
3 | environment:
|
4 | nodejs_version: "6"
|
5 | cache:
|
6 | - '%APPDATA%\npm-cache'
|
7 | - '%USERPROFILE%\.electron'
|
8 | - node_modules
|
9 | branches:
|
10 | only:
|
11 | - master
|
12 | - /^v\d+\.\d+\.\d+/
|
13 | install:
|
14 | - ps: Install-Product node $env:nodejs_version $env:platform
|
15 | - set PATH=%APPDATA%\npm;%PATH%
|
16 | - npm install
|
17 | - npm update
|
18 |
|
19 | test_script:
|
20 | - node --version
|
21 | - npm --version
|
22 | - npm run lint
|
23 | - if %APPVEYOR_REPO_TAG% EQU false npm run make
|
24 |
|
25 | build_script:
|
26 | - IF %APPVEYOR_REPO_TAG% EQU true npm run publish
|