diff --git a/appveyor-artifacts.cmd b/appveyor-artifacts.cmd new file mode 100644 index 0000000..29e05dd --- /dev/null +++ b/appveyor-artifacts.cmd @@ -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% diff --git a/appveyor.yml b/appveyor.yml index 3426470..cf2b68f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -61,4 +61,6 @@ test_script: - cd %APPVEYOR_BUILD_FOLDER%\build - ctest -V -C %configuration% -# TODO: Automatic packaging? +after_test: + - cd %APPVEYOR_BUILD_FOLDER%\build + - ..\appveyor-artifacts.cmd