WIP automatic deployment
This commit is contained in:
parent
517d57ef1f
commit
a091186825
|
@ -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" )
|
||||||
|
|
||||||
|
|
||||||
#---------------------
|
#---------------------
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue