WIP automatic deployment
authorAntonin Descampe <antonin@gmail.com>
Sun, 15 May 2016 12:02:44 +0000 (14:02 +0200)
committerAntonin Descampe <antonin@gmail.com>
Sun, 15 May 2016 12:02:44 +0000 (14:02 +0200)
tools/ctest_scripts/travis-ci.cmake
tools/travis-ci/run.sh

index 76a97f1c7fe69487c7bf50a9cd961905c4e64b4b..93d65bc0e56fc04d661e4f0d9a151f6221165979 100644 (file)
@@ -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" )
 
 
 #---------------------
index 0e77c965808d17a177451e8350504ae803c8f753..f65da7b0900dd99c2f0774d54da361a6ada840e0 100755 (executable)
@@ -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