WIP automatic deployment

This commit is contained in:
Antonin Descampe 2016-05-15 14:02:44 +02:00
parent 517d57ef1f
commit a091186825
2 changed files with 5 additions and 4 deletions

View File

@ -123,10 +123,10 @@ endif()
set( CTEST_SOURCE_DIRECTORY "$ENV{OPJ_SOURCE_DIR}") set( CTEST_SOURCE_DIRECTORY "$ENV{OPJ_SOURCE_DIR}")
set( CTEST_BINARY_DIRECTORY "${CTEST_DASHBOARD_ROOT}") set( CTEST_BINARY_DIRECTORY "${CTEST_DASHBOARD_ROOT}")
#---------------------- # #----------------------
# Package parameters in case of deployment # # Package parameters in case of deployment
# Might add more parameters later on # # Might add more parameters later on
set( CPACK_GENERATOR "ZIP" ) # set( CPACK_GENERATOR "ZIP" )
#--------------------- #---------------------

View File

@ -193,6 +193,7 @@ set +x
#if [ "${OPJ_CI_INCLUDE_IF_DEPLOY:-}" == "1" ] && [ [ "${TRAVIS_TAG:-}" != "" ] || [ "${APPVEYOR_REPO_TAG:-}" == "true" ] ]; then #if [ "${OPJ_CI_INCLUDE_IF_DEPLOY:-}" == "1" ] && [ [ "${TRAVIS_TAG:-}" != "" ] || [ "${APPVEYOR_REPO_TAG:-}" == "true" ] ]; then
if [ "${OPJ_CI_INCLUDE_IF_DEPLOY:-}" == "1" ]; then if [ "${OPJ_CI_INCLUDE_IF_DEPLOY:-}" == "1" ]; then
OPJ_CI_DEPLOY=1 OPJ_CI_DEPLOY=1
cmake -D CPACK_GENERATOR:STRING=ZIP ${OPJ_SOURCE_DIR}
cmake --build ${OPJ_BINARY_DIR} --target package cmake --build ${OPJ_BINARY_DIR} --target package
echo "ready to deploy $(ls ${OPJ_BINARY_DIR}/openjpeg*.zip) to GitHub releases" echo "ready to deploy $(ls ${OPJ_BINARY_DIR}/openjpeg*.zip) to GitHub releases"
if [ "${APPVEYOR_REPO_TAG:-}" == "true" ]; then if [ "${APPVEYOR_REPO_TAG:-}" == "true" ]; then