-
Notifications
You must be signed in to change notification settings - Fork 143
/
appveyor.yml
66 lines (40 loc) · 2.07 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
image: Visual Studio 2017
version: 0.6.0.{build}
skip_tags: true
skip_branch_with_pr: false
environment:
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
_zip: '%APPVEYOR_BUILD_FOLDER%\ElDewrito-%APPVEYOR_BUILD_VERSION%.7z'
_zipD: '%APPVEYOR_BUILD_FOLDER%\ElDewrito-%APPVEYOR_BUILD_VERSION%-debug.7z'
_7z: 7z -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on a %_zip% -r -x!*.config -x!*.exp -x!*.lib -x!*.pdb
_7zD: 7z -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on a %_zipD% -r -x!*.config -x!*.exp -x!*.lib -x!*.ilk
_vInfo: '%APPVEYOR_BUILD_FOLDER%\ElDorito\Source\Utils\VersionInfo.cpp'
init:
- git config --global core.autocrlf input
clone_folder: c:\projects\ElDorito
shallow_clone: true
build_script:
- cmd: >-
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe" /nologo /m:2 /p:Configuration="Release" /p:Platform="Win32" /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" "%APPVEYOR_BUILD_FOLDER%\ElDorito.sln"
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe" /nologo /m:2 /p:Configuration="Debug" /p:Platform="Win32" /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" "%APPVEYOR_BUILD_FOLDER%\ElDorito.sln"
before_build:
- cmd: >-
CD %APPVEYOR_BUILD_FOLDER%
git clone https://github.com/scooterpsu/medalPack.git .\dist\mods\medals\default
RM -rf .\dist\mods\medals\default\.git
- ps: (Get-Content "$env:_vInfo") -replace 'V\(\s*(\d+),\s*(\d+),\s*(\d+),\s*(\d+)\s*\)', "V(`$1, `$2, `$3, $env:APPVEYOR_BUILD_NUMBER)" | Out-File "$env:_vInfo"
after_build:
- cmd: >-
CD %APPVEYOR_BUILD_FOLDER%\dist\
echo D|xcopy /e /y ..\Release\* .\
appveyor PushArtifact .\mtndew.dll
%_7z% *
appveyor PushArtifact %_zip%
del %_zip%
echo D|xcopy /e /y ..\Debug\* .\
%_7zD% *
appveyor PushArtifact %_zipD%
move mtndew.dll mtndew-debug.dll
appveyor PushArtifact mtndew-debug.dll
move mtndew.pdb mtndew-debug.pdb
appveyor PushArtifact mtndew-debug.pdb