forked from morbac/xmltools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
77 lines (66 loc) · 2.95 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
version: 2.4.9.2.{Build}
image: Visual Studio 2017
environment:
matrix:
#- PlatformToolset: v141_xp
- PlatformToolset: v140_xp
platform:
- x64
- Win32
configuration:
- Release
- Debug
install:
- if "%platform%"=="x64" set platform_input=x64
- if "%platform%"=="Win32" set platform_input=Win32
- if "%platform%"=="x64" set archi=amd64
- if "%platform%"=="Win32" set archi=x86
- if "%PlatformToolset%"=="v140_xp" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %archi%
- if "%PlatformToolset%"=="v141_xp" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi%
- cd "%APPVEYOR_BUILD_FOLDER%"\libs\libcurl
- curl -o curl.zip https://curl.haxx.se/download/curl-7.57.0.zip
- 7z x -y curl.zip > nul
- cd "%APPVEYOR_BUILD_FOLDER%"\libs\libxml\install
- 7z x -y libxml2-2.9.3-win32-x86.7z > nul
- 7z x -y iconv-1.14-win32-x86.7z > nul
- 7z x -y libxslt-1.1.28-win32-x86.7z > nul
- mkdir "%APPVEYOR_BUILD_FOLDER%"\libs\libxml\install\x86\include
- mkdir "%APPVEYOR_BUILD_FOLDER%"\libs\libxml\install\x64\include
- if "%platform_input%"=="Win32" xcopy /E "%APPVEYOR_BUILD_FOLDER%"\libs\libxml\install\include "%APPVEYOR_BUILD_FOLDER%"\libs\libxml\x86\include\
- if "%platform_input%"=="x64" xcopy /E "%APPVEYOR_BUILD_FOLDER%"\libs\libxml\install\include "%APPVEYOR_BUILD_FOLDER%"\libs\libxml\x64\include\
build_script:
- cd "%APPVEYOR_BUILD_FOLDER%"
- msbuild XMLTools.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%"
- ps: |
#Push-AppveyorArtifact "$env:PLATFORM_INPUT\$env:CONFIGURATION\XMLTools.dll" -FileName XMLTools.dll
if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:PLATFORMTOOLSET -eq "v140_xp" -and $env:CONFIGURATION -eq "Release")
{
if($env:ARCH -eq "x64"){
$ZipFileName = "NppEditorConfig_$($env:APPVEYOR_REPO_TAG_NAME)_x64.zip"
7z a $ZipFileName $env:APPVEYOR_BUILD_FOLDER\$env:PLATFORM_INPUT\$env:CONFIGURATION\XMLTools.dll
#TODO add further dependencies and txt files
}
if($env:ARCH -eq "Win32"){
$ZipFileName = "NppEditorConfig_$($env:APPVEYOR_REPO_TAG_NAME)_x86.zip"
7z a $ZipFileName $env:APPVEYOR_BUILD_FOLDER\$env:PLATFORM_INPUT\$env:CONFIGURATION\XMLTools.dll
#TODO add further dependencies and txt files
}
}
artifacts:
- path: XMLTools_*.zip
name: releases
deploy:
provider: GitHub
description: ''
auth_token:
secure: !!!TODO!!!
artifact: releases
draft: false
prerelease: false
force_update: true
on:
appveyor_repo_tag: true
PlatformToolset: v140_xp
configuration: Release