summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2016-05-15 14:02:44 +0200
committerAntonin Descampe <antonin@gmail.com>2016-05-15 14:02:44 +0200
commita09118682573469f9d9b889634bbfec0ffdde2fe (patch)
tree54993d18ab8791b001eac520e2eb3be554147482 /tools
parent517d57ef1fa636839d24fcfe8a6c1065d6bb1ce4 (diff)
WIP automatic deployment
Diffstat (limited to 'tools')
-rw-r--r--tools/ctest_scripts/travis-ci.cmake8
-rwxr-xr-xtools/travis-ci/run.sh1
2 files changed, 5 insertions, 4 deletions
diff --git a/tools/ctest_scripts/travis-ci.cmake b/tools/ctest_scripts/travis-ci.cmake
index 76a97f1c..93d65bc0 100644
--- a/tools/ctest_scripts/travis-ci.cmake
+++ b/tools/ctest_scripts/travis-ci.cmake
@@ -123,10 +123,10 @@ endif()
set( CTEST_SOURCE_DIRECTORY "$ENV{OPJ_SOURCE_DIR}")
set( CTEST_BINARY_DIRECTORY "${CTEST_DASHBOARD_ROOT}")
-#----------------------
-# Package parameters in case of deployment
-# Might add more parameters later on
-set( CPACK_GENERATOR "ZIP" )
+# #----------------------
+# # Package parameters in case of deployment
+# # Might add more parameters later on
+# set( CPACK_GENERATOR "ZIP" )
#---------------------
diff --git a/tools/travis-ci/run.sh b/tools/travis-ci/run.sh
index 0e77c965..f65da7b0 100755
--- a/tools/travis-ci/run.sh
+++ b/tools/travis-ci/run.sh
@@ -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" ]; then
OPJ_CI_DEPLOY=1
+ cmake -D CPACK_GENERATOR:STRING=ZIP ${OPJ_SOURCE_DIR}
cmake --build ${OPJ_BINARY_DIR} --target package
echo "ready to deploy $(ls ${OPJ_BINARY_DIR}/openjpeg*.zip) to GitHub releases"
if [ "${APPVEYOR_REPO_TAG:-}" == "true" ]; then