forked from trufflesuite/ganache-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
50 lines (41 loc) · 1.38 KB
/
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
42
43
44
45
46
47
48
49
image:
- Visual Studio 2017
platform:
- x64
cache:
- node_modules
- '%USERPROFILE%\.electron'
environment:
APPVEYOR_SAVE_CACHE_ON_ERROR: true
CSC_KEY_PASSWORD:
secure: Cqeajvouxb90cluiDv/iJuLkFHwNERXSxjoXg7FzZZ4=
CERT_PASSPHRASE:
secure: ppGahvnNpvjY6+zSIe6QJdMM2OArsgn1qb2RQX4SXMmEamtJM9/fY03rTBxBVFgoRNJftJMD9I6RYLFBzdtwQw==
GH_TOKEN:
secure: w01ayU0xx5aYR68/rJbAtdtfs+6bXFhYhZkRf4aeY8ca2qikM0UWiC7G5xXeUkz9
matrix:
- nodejs_version: 10
install:
- ps: $env:package_version = (Get-Content -Raw -Path package.json | ConvertFrom-Json).version
- ps: Update-AppveyorBuild -Version "$env:package_version-$env:APPVEYOR_BUILD_NUMBER"
- ps: if(-not $env:APPVEYOR_PULL_REQUEST_NUMBER) {
iex ((New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/appveyor/secure-file/master/install.ps1'));
appveyor-tools\secure-file -decrypt certs/cert.pfx.enc -secret $env:CERT_PASSPHRASE;
}
- ps: Install-Product node $env:nodejs_version x64
- ps: npm install -g windows-build-tools
- set CI=true
- npm install -g npm@latest
- set PATH=%APPDATA%\npm;%PATH%
- npm ci
matrix:
fast_finish: true
shallow_clone: true
clone_depth: 1
build_script:
- ps: npm run build-windows
artifacts:
- path: 'dist/Ganache-*.appx'
- path: 'dist/ganache-setup-*.exe'
- path: 'dist/ganache-setup-*.exe.blockmap'
- path: 'dist/latest.yml'