forked from derceg/explorerplusplus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
100 lines (62 loc) · 2.72 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
91
92
93
94
95
96
97
98
99
100
version: 1.4.0.{build}
image: Visual Studio 2019
configuration: Release
platform:
- Win32
- x64
branches:
except:
- l10n_master
environment:
PFX_ENC_PASS:
secure: vl0ntw9DjQdAno9nYVe0osg2tBmXD7gW75NLfxIvxMDW3GiVlJlFcESf7v6f7qKe
PFX_PASS:
secure: rgMy2ixSiaW0sk2CwaHwO5pK8U98ynzt/jjiGNRSYPfaAcOTRZ5oX+fsgqn6qP54
init:
- ps: >-
if ($env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH -eq "l10n_master") {
Write-Host "Skipping l10n_master branch pull request"
Exit-AppveyorBuild
}
# Decrypt the code signing certificate.
install:
- cmd: >-
nuget install secure-file -ExcludeVersion
SET PATH=C:\Program Files (x86)\HTML Help Workshop;%PATH%
IF DEFINED PFX_ENC_PASS (secure-file\tools\secure-file -decrypt %APPVEYOR_BUILD_FOLDER%\authenticode.pfx.enc -secret %PFX_ENC_PASS%)
before_build:
- cmd: >-
nuget restore Explorer++\Explorer++.sln
build:
project: Explorer++\Explorer++.sln
verbosity: minimal
# Sign and package the executable.
after_build:
- cmd: >-
cd %APPVEYOR_BUILD_FOLDER%
IF "%PLATFORM%" == "Win32" (SET "arch=x86") ELSE (SET "arch=x64")
SET "archiveName=explorer++_%arch%.zip"
CALL %APPVEYOR_BUILD_FOLDER%\Scripts\AppVeyor\compile_help_file.bat
7z a %archiveName% %APPVEYOR_BUILD_FOLDER%\Explorer++\Explorer++\%PLATFORM%\%CONFIGURATION%\Explorer++.exe
7z a %archiveName% %APPVEYOR_BUILD_FOLDER%\Documentation\User\History.txt
7z a %archiveName% %APPVEYOR_BUILD_FOLDER%\Documentation\User\License.txt
7z a %archiveName% %APPVEYOR_BUILD_FOLDER%\Documentation\User\Readme.txt
7z a %archiveName% "%APPVEYOR_BUILD_FOLDER%\Documentation\User\Help Manual\Explorer++ Help.chm"
7z a explorer++_%arch%_symbols.zip %APPVEYOR_BUILD_FOLDER%\Explorer++\Explorer++\%PLATFORM%\%CONFIGURATION%\Explorer++.pdb
copy "%APPVEYOR_BUILD_FOLDER%\Explorer++\Installer\bin\%arch%\%CONFIGURATION%\Explorer++ Setup.msi" "Explorer++ Setup.msi"
7z a explorer++_translations.zip %APPVEYOR_BUILD_FOLDER%\Explorer++\Win32\%CONFIGURATION%\Explorer++*.dll
test_script:
- ps: >-
cd $env:APPVEYOR_BUILD_FOLDER\Explorer++\TestExplorer++\$env:PLATFORM\$env:CONFIGURATION
# Run the tests.
.\TestExplorer++.exe --gtest_output=xml:TestExplorer++Output.xml
# Upload results to AppVeyor.
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\TestExplorer++Output.xml))
artifacts:
- path: explorer++_x86.zip
- path: explorer++_x86_symbols.zip
- path: explorer++_x64.zip
- path: explorer++_x64_symbols.zip
- path: Explorer++ Setup.msi
- path: explorer++_translations.zip