-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathappveyor.yml
45 lines (34 loc) · 1.51 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
version: 1.10.{build}
image: Visual Studio 2017
environment:
matrix:
- PlatformToolset: v140
- PlatformToolset: v141
platform:
- x64
- Any CPU
configuration:
- Release
- Debug
install:
- if "%platform%"=="x64" set archi=amd64
- if "%platform%"=="x64" set platform_input=x64
- if "%platform%"=="Any CPU" set archi=x86
- if "%platform%"=="Any CPU" set platform_input=Any CPU
- if "%PlatformToolset%"=="v140" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %archi%
- if "%PlatformToolset%"=="v141" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi%
build:
parallel: true # enable MSBuild parallel builds
verbosity: minimal
build_script:
- cd "%APPVEYOR_BUILD_FOLDER%"
- msbuild phdesign.NppToolBucket.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%"\phdesign.NppToolBucket
- ps: >-
if ($env:PLATFORM_INPUT -eq "x64" -and $env:CONFIGURATION -eq "Release") {
Push-AppveyorArtifact "bin\x64\$env:CONFIGURATION\NppToolBucket.dll" -FileName NppToolBucket.dll
}
if ($env:PLATFORM_INPUT -eq "Any CPU" -and $env:CONFIGURATION -eq "Release") {
Push-AppveyorArtifact "bin\$env:CONFIGURATION\NppToolBucket.dll" -FileName NppToolBucket.dll
}