-
-
Notifications
You must be signed in to change notification settings - Fork 46
/
appveyor.yml
41 lines (32 loc) · 946 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
41
image: Visual Studio 2017
platform:
- x64
environment:
matrix:
- nodejs_version: '10'
cache:
- node_modules -> appveyor.yml,package.json,yarn.lock
- '%LOCALAPPDATA%\Yarn -> appveyor.yml,package.json,yarn.lock'
- '%USERPROFILE%\.electron'
init:
- git config --global core.autocrlf input
install:
- ps: Install-Product node $env:nodejs_version x64
- set CI=true
- yarn
build_script:
# Output useful info for debugging.
- node --version
- yarn --version
- yarn run build
# linting woop woop
# - yarn run lint
# run tests
# - yarn run test-e2e -- --retries 2
deploy_script:
- cmd: yarn run release:win
artifacts:
- path: 'release\*.exe'
- path: 'release\latest.yml'
on_failure:
- ps: $root = Resolve-Path ./test\screenshots; [IO.Directory]::GetFiles($root.Path, '*.png', 'AllDirectories') | % { Push-AppveyorArtifact $_ -FileName $_.Substring($root.Path.Length + 1) -DeploymentName to-publish }