Skip to content

Commit 68edfda

Browse files
committed
initial appveyor CI build config
1 parent 78ec2da commit 68edfda

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

appveyor.yml

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
version: 1.4.0.{build}
2+
image: Visual Studio 2017
3+
4+
5+
environment:
6+
matrix:
7+
- PlatformToolset: v140_xp
8+
- PlatformToolset: v141_xp
9+
10+
platform:
11+
- x64
12+
- Win32
13+
14+
configuration:
15+
- Release
16+
- Debug
17+
18+
19+
install:
20+
- if "%platform%"=="x64" set archi=amd64
21+
- if "%platform%"=="x64" set platform_input=x64
22+
23+
- if "%platform%"=="Win32" set archi=x86
24+
- if "%platform%"=="Win32" set platform_input=Win32
25+
26+
- if "%PlatformToolset%"=="v141_xp" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi%
27+
- if "%PlatformToolset%"=="v140_xp" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %archi%
28+
29+
build_script:
30+
- cd "%APPVEYOR_BUILD_FOLDER%"
31+
- msbuild NppSnippets_vs2015.sln /m /p:configuration="%configuration%" /p:platform="%platform_input%" /p:PlatformToolset="%PlatformToolset%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
32+
33+
after_build:
34+
- cd "%APPVEYOR_BUILD_FOLDER%"
35+
- ps: >-
36+
37+
#Push-AppveyorArtifact "$env:PLATFORM_INPUT\$env:CONFIGURATION\NppSnippets.dll" -FileName NppSnippets.dll
38+
39+
if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:CONFIGURATION -eq "Release" -and $env:PLATFORMTOOLSET -eq "v140_xp") {
40+
if($env:PLATFORM_INPUT -eq "x64"){
41+
$ZipFileName = "NppSnippets_$($env:APPVEYOR_REPO_TAG_NAME)_x64.zip"
42+
7z a $ZipFileName $env:PLATFORM_INPUT\$env:CONFIGURATION\NppSnippets.dll
43+
}
44+
if($env:PLATFORM_INPUT -eq "Win32"){
45+
$ZipFileName = "NppSnippets_$($env:APPVEYOR_REPO_TAG_NAME)_x32.zip"
46+
7z a $ZipFileName $env:PLATFORM_INPUT\$env:CONFIGURATION\NppSnippets.dll
47+
}
48+
}
49+
50+
artifacts:
51+
- path: NppSnippets_*.zip
52+
name: releases
53+
54+
deploy:
55+
provider: GitHub
56+
auth_token:
57+
secure: !!TODO, see https://www.appveyor.com/docs/deployment/github/#provider-settings!!
58+
artifact: releases
59+
draft: false
60+
prerelease: false
61+
force_update: true
62+
on:
63+
appveyor_repo_tag: true
64+
PlatformToolset: v140_xp
65+
configuration: Release

0 commit comments

Comments
 (0)