forked from RocketChat/Rocket.Chat.Electron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
41 lines (36 loc) · 1.12 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
image: Visual Studio 2017
environment:
nodejs_version: "10"
platform:
- x64
skip_tags: true
shallow_clone: true
clone_depth: 1
cache:
- "%LOCALAPPDATA%/Yarn"
- node_modules -> package.json
branches:
only:
- master
- develop
- /^hotfix\/.*$/
- /^release\/.*$/
# init:
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
install:
- ps: Install-Product node $env:nodejs_version $env:platform
- yarn
build_script:
- ps: |
if ($env:CSC_LINK_0 -and $env:CSC_LINK_1) {
$env:CSC_LINK = $env:CSC_LINK_0 + $env:CSC_LINK_1
Write-Output ("CSC_LINK has {0} characters" -f $env:CSC_LINK.length)
$tmp = New-TemporaryFile
[Convert]::FromBase64String($env:CSC_LINK) | Set-Content ($tmp.FullName + ".p12") -Encoding Byte
$env:CSC_LINK = ($tmp.FullName + ".p12")
}
- yarn test
- set NODE_ENV=production
- yarn release
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))