forked from notepad-plus-plus/nppPluginList
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
80 lines (64 loc) · 2.69 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
version: 1.3.0.{build}
image: Visual Studio 2017
environment:
matrix:
- PlatformToolset: v141_xp
PLATFORM: x64
PYTHONTEST: x64
PYTHON: "C:\\Python38"
- PlatformToolset: v141_xp
PLATFORM: Win32
PYTHONTEST: Win32
PYTHON: "C:\\Python38"
- PlatformToolset: v141_xp
PLATFORM: x64
- PlatformToolset: v141_xp
PLATFORM: Win32
configuration:
- Release
#- Debug
install:
- SET PATH=%PYTHON%;%PATH%
- if not "%PYTHONTEST%"=="" python -m pip install requests jsonschema rfc3987 pywin32
- if "%platform%"=="x64" set archi=amd64
- if "%platform%"=="x64" set platform_input=x64
- if "%platform%"=="Win32" set archi=x86
- if "%platform%"=="Win32" set platform_input=Win32
- if "%PlatformToolset%"=="v141_xp" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi%
- if "%PlatformToolset%"=="v140_xp" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %archi%
build_script:
- cd "%APPVEYOR_BUILD_FOLDER%"
- if not "%PYTHONTEST%"=="" call python validator.py %PYTHONTEST%
- cd "%APPVEYOR_BUILD_FOLDER%"/vcxproj
- if "%PYTHONTEST%"=="" msbuild nppPluginList.vcxproj /p:configuration="%configuration%" /p:platform="%platform_input%" /p:PlatformToolset="%PlatformToolset%"
after_build:
- cd "%APPVEYOR_BUILD_FOLDER%"
- ps: >-
if(-not ($env:PYTHONTEST))
{
if ($env:PLATFORM_INPUT -eq "x64" -and $env:CONFIGURATION -eq "Release") {
Push-AppveyorArtifact "bin64\nppPluginList.dll" -FileName nppPluginList.dll
}
if ($env:PLATFORM_INPUT -eq "Win32" -and $env:CONFIGURATION -eq "Release") {
Push-AppveyorArtifact "bin\nppPluginList.dll" -FileName nppPluginList.dll
}
if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:CONFIGURATION -eq "Release" -and $env:PLATFORMTOOLSET -eq "v141_xp") {
if($env:PLATFORM_INPUT -eq "x64"){
$ZipFileName = "nppPluginList_$($env:APPVEYOR_REPO_TAG_NAME)_x64.zip"
7z a $ZipFileName bin64\*.dll
}
if($env:PLATFORM_INPUT -eq "Win32"){
$ZipFileName = "nppPluginList_$($env:APPVEYOR_REPO_TAG_NAME)_x86.zip"
7z a $ZipFileName bin\*.dll
}
}
}
else
{
if ($env:PLATFORM_INPUT -eq "x64") {
Push-AppveyorArtifact "plugin_list_x64.md" -FileName plugin_list_x64.md
}
if ($env:PLATFORM_INPUT -eq "Win32") {
Push-AppveyorArtifact "plugin_list_x86.md" -FileName plugin_list_x86.md
}
}