1 | platform:
|
2 | - x64
|
3 | environment:
|
4 | nodejs_version: "6"
|
5 | matrix:
|
6 | - node_installer: yarn
|
7 | cache:
|
8 | - 'node_modules'
|
9 | - '%USERPROFILE%\.electron'
|
10 | branches:
|
11 | only:
|
12 | - master
|
13 | - 5.x
|
14 |
|
15 | install:
|
16 | - ps: Install-Product node $env:nodejs_version $env:platform
|
17 | - set PATH=%APPDATA%\npm;%PATH%
|
18 | - yarn
|
19 | - ps: |
|
20 | $wixToolsetBinPath = ";C:\Program Files (x86)\WiX Toolset v3.11\bin;"
|
21 | $env:PATH = $env:PATH + $wixToolsetBinPath
|
22 | [Environment]::SetEnvironmentVariable("Path", $env:PATH, [EnvironmentVariableTarget]::Machine)
|
23 | if ((Get-Command "light.exe" -ErrorAction SilentlyContinue) -eq $null)
|
24 | {
|
25 | Write-Host "Unable to find light.exe in your PATH"
|
26 | }
|
27 |
|
28 | test_script:
|
29 | - node --version
|
30 | - yarn --version
|
31 | - yarn test --installer=%node_installer%
|
32 |
|
33 | build: off
|