forked from exokitxr/exokit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
90 lines (82 loc) · 2.85 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
version: 0.0.{build}
# Test against the latest version of this Node.js version
environment:
nodejs_version: "10"
MAGICLEAP:
secure: 4mAodSQiCUr1X1maLOYyj4nYCb87r4J54Wb1jw1EE9tT4tpcbic6hpDynrSu7Ep3
PFX_KEY:
secure: rb5g/ykqdQek473qm/8WbnEQ6ItBfgcL1/ShqAMWLTH5+Z3Y45MHN2BB3UXdx067
# Install scripts. (runs after repo cloning)
install:
# Get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version x64
# Post-install test scripts.
test_script:
# Output useful info for debugging.
- node --version
- npm --version
after_test:
- ps: |
wget "https://nodejs.org/dist/v10.6.0/node-v10.6.0-win-x64.zip" -OutFile node.zip
7z x node.zip
rm node.zip
mv node-v10.6.0-win-x64 node
$env:Path = "$pwd\node;$env:Path";
.\node\npm install
.\node\npm run test:ci
bash testRun.sh
set version "$env:APPVEYOR_REPO_TAG_NAME"
if ([string]::IsNullOrEmpty("$version")) { set version "$env:APPVEYOR_REPO_COMMIT".Substring(0, 8) }
mkdir dist
.\buildtools\iscc "$pwd\exokit.iss" "/dMyAppVersion=$version" /odist /qp
mv dist\*.exe exokit-win-x64.exe
rm -R -fo dist
& "C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1A/Bin/SignTool.exe" sign /f .\codesign-windows.pfx /t http://timestamp.comodoca.com/authenticode /p "$env:PFX_KEY" exokit-win-x64.exe
7z a exokit-windows-full.zip * -xr'!.git' -xr'!buildtools' -xr'!exokit-win-x64.exe'
rm -r -fo node
7z a exokit-windows.zip * -xr'!.git' -xr'!buildtools' -xr'!exokit-win-x64.exe' -xr'!exokit-windows-full.zip'
artifacts:
- path: "exokit-windows.zip"
name: exokit-windows
- path: "exokit-windows-full.zip"
name: exokit-windows-full
- path: "exokit-win-x64.exe"
name: exokit-windows-installer
deploy:
- provider: GitHub
description: 'Exokit git'
auth_token:
secure: JzzhsoEKVJ6oKuS/3Uwa+odltY7CFRU/V5BaO62rG6BwfSeCydMDX5o/gJScQGkN
artifact: "exokit-windows.zip"
draft: false
prerelease: false
on:
appveyor_repo_tag: true
- provider: GitHub
description: 'Exokit git'
auth_token:
secure: JzzhsoEKVJ6oKuS/3Uwa+odltY7CFRU/V5BaO62rG6BwfSeCydMDX5o/gJScQGkN
artifact: "exokit-windows-full.zip"
draft: false
prerelease: false
on:
appveyor_repo_tag: true
- provider: GitHub
description: 'Exokit installer'
auth_token:
secure: JzzhsoEKVJ6oKuS/3Uwa+odltY7CFRU/V5BaO62rG6BwfSeCydMDX5o/gJScQGkN
artifact: "exokit-win-x64.exe"
draft: false
prerelease: false
on:
appveyor_repo_tag: true
notifications:
- provider: Slack
auth_token:
secure: 45CGZx1wukHisNzZTeLLraViNfOZxzzjx5lCfcrBq57T+fCPvD0UkJ0v3Slc/ykJ6TL5feuLnp0CGrAwtlfNztcTdPNlpCkGuWskq1A+Ehw=
channel: '#builds'
on_build_success: false
on_build_failure: true
on_build_status_changed: true
# Don't actually build.
build: off