AppVeyor: We need to package the build *after* building it.

This commit is contained in:
David Korth 2020-06-21 18:44:21 -04:00
parent d746b75849
commit d578d0d458
3 changed files with 13 additions and 4 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%
appveyor PushArtifact *.zip
exit /b %ERRORLEVEL%

View File

@ -14,10 +14,6 @@ if "%platform%" == "x64" set "CMAKE_GENERATOR=%CMAKE_GENERATOR% Win64"
mkdir build
cd build
cmake .. -G "%CMAKE_GENERATOR%" -DCMAKE_GENERATOR_TOOLSET=%CMAKE_GENERATOR_TOOLSET% -DENABLE_JPEG=ON -DBUILD_TESTING=ON -DENABLE_LTO=OFF -DENABLE_PCH=ON
if ERRORLEVEL 1 exit /b %ERRORLEVEL%
if "%configuration%" == "Release" cpack -C "%configuration%"
if ERRORLEVEL 1 exit /b %ERRORLEVEL%
if "%configuration%" == "Release" appveyor PushArtifact *.zip
exit /b %ERRORLEVEL%
:mingw-w64

View File

@ -60,3 +60,7 @@ build_script:
test_script:
- cd %APPVEYOR_BUILD_FOLDER%\build
- ctest -V -C %configuration%
before_deploy:
- cd %APPVEYOR_BUILD_FOLDER%\build
- appveyor-artifacts.cmd