forked from LN-Zap/zap-desktop
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
40 lines (27 loc) · 911 Bytes
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
os: unstable
platform:
- x64
environment:
DEBUG: electron-builder
nodejs_version: '12'
init:
- ps: Install-Product node $env:nodejs_version x64
- cmd: set NODE_OPTIONS=--max-old-space-size=4096
cache:
- node_modules -> package.json
matrix:
fast_finish: true
build: off
version: '{build}'
clone_depth: 50
skip_branch_with_pr: true
install:
- set CI=true
- yarn
test_script:
- yarn lint-ci
- yarn test-ci
on_failure:
- ps: $root = Resolve-Path .\screenshots; [IO.Directory]::GetFiles($root.Path, '*.*', 'AllDirectories') | % { Push-AppveyorArtifact $_ -FileName $_.Substring($root.Path.Length + 1) -DeploymentName to-publish }
deploy_script:
- cmd: powershell if (($env:appveyor_repo_name -eq 'LN-Zap/zap-desktop') -and (($env:appveyor_repo_branch -eq 'master') -or ($env:appveyor_repo_branch -eq 'next') -or ($env:appveyor_repo_branch -eq 'build'))) { yarn release --win }