AppVeyor: Package artifacts for MSVC 2013 Release builds.

This commit is contained in:
David Korth 2020-06-21 22:54:05 -04:00
parent 9171d4c3c3
commit 7e72ea998f
2 changed files with 12 additions and 1 deletions

9
appveyor-artifacts.cmd Normal file
View File

@ -0,0 +1,9 @@
@ECHO OFF
if not "%compiler%" == "msvc2013" exit /b 0
if not "%configuration%" == "Release" exit /b 0
cpack --version
cpack -C "%configuration%"
if ERRORLEVEL 1 exit /b %ERRORLEVEL%
for %%z in (*.zip) do appveyor PushArtifact "%%z"
exit /b %ERRORLEVEL%

View File

@ -61,4 +61,6 @@ test_script:
- cd %APPVEYOR_BUILD_FOLDER%\build - cd %APPVEYOR_BUILD_FOLDER%\build
- ctest -V -C %configuration% - ctest -V -C %configuration%
# TODO: Automatic packaging? after_test:
- cd %APPVEYOR_BUILD_FOLDER%\build
- ..\appveyor-artifacts.cmd