-
Notifications
You must be signed in to change notification settings - Fork 7
/
appveyor.yml
55 lines (43 loc) · 2 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
version: 2.7.1.{build}
image: Visual Studio 2019
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
PlatformToolset: v142
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
PlatformToolset: v142_xp
platform:
- x64
- x86
configuration:
- Release
- Debug
install:
- if "%platform%"=="x64" set archi=amd64
- if "%platform%"=="x64" set platform_input=x64
- if "%platform%"=="x86" set archi=x86
- if "%platform%"=="x86" set platform_input=x86
- if "%PlatformToolset%"=="v142" call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi%
build_script:
- cd "%APPVEYOR_BUILD_FOLDER%"
- msbuild NppNavigateTo.sln /m /p:configuration="%configuration%" /p:platform="%platform_input%" /p:PlatformToolset="%PlatformToolset%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
after_build:
- cd "%APPVEYOR_BUILD_FOLDER%\NppNavigateTo"
- ps: >-
if ($env:PLATFORM -eq "x64" -and $env:CONFIGURATION -eq "Release") {
Push-AppveyorArtifact "bin\$env:CONFIGURATION-$env:PLATFORM\NavigateTo.dll" -FileName NavigateTo.dll
}
if ($env:PLATFORM -eq "x86" -and $env:CONFIGURATION -eq "Release") {
Push-AppveyorArtifact "bin\$env:CONFIGURATION\NavigateTo.dll" -FileName NavigateTo.dll
}
if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:CONFIGURATION -eq "Release") {
if($env:PLATFORM -eq "x64"){
$ZipFileName = "NavigateTo_$($env:APPVEYOR_REPO_TAG_NAME)_$($env:PLATFORMTOOLSET)_x64.zip"
7z a $ZipFileName .\bin\$env:CONFIGURATION-$env:PLATFORM\*
Push-AppveyorArtifact $ZipFileName -DeploymentName releases
} else {
$ZipFileName = "NavigateTo_$($env:APPVEYOR_REPO_TAG_NAME)_$($env:PLATFORMTOOLSET)_x86.zip"
7z a $ZipFileName .\bin\$env:CONFIGURATION\*
Push-AppveyorArtifact $ZipFileName -DeploymentName releases
}
}