summaryrefslogtreecommitdiff
path: root/tools/ctest_scripts
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2016-05-15 13:52:55 +0200
committerAntonin Descampe <antonin@gmail.com>2016-05-15 13:52:55 +0200
commit517d57ef1fa636839d24fcfe8a6c1065d6bb1ce4 (patch)
tree9d789f760fda46828c14c5d9ac39a1a080d5ab9a /tools/ctest_scripts
parent7c41a1e393d8ac4ee16208aca83bce1f2d714a23 (diff)
WIP automatic deployment
Diffstat (limited to 'tools/ctest_scripts')
-rw-r--r--tools/ctest_scripts/travis-ci.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/ctest_scripts/travis-ci.cmake b/tools/ctest_scripts/travis-ci.cmake
index f8c50e5b..76a97f1c 100644
--- a/tools/ctest_scripts/travis-ci.cmake
+++ b/tools/ctest_scripts/travis-ci.cmake
@@ -123,6 +123,12 @@ 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" )
+
+
#---------------------
# Files to submit to the dashboard
set (CTEST_NOTES_FILES
@@ -147,5 +153,9 @@ endif()
if ("$ENV{OPJ_DO_SUBMIT}" STREQUAL "1")
ctest_submit()
endif()
+# # Generate package if deployment
+# if( "$ENV{OPJ_CI_DEPLOY}" STREQUAL "1")
+# ctest_build(BUILD "${CTEST_BINARY_DIRECTORY}" TARGET "package")
+# endif()
# Do not clean, we'll parse the log for known failure
#ctest_empty_binary_directory( "${CTEST_BINARY_DIRECTORY}" )