diff options
| author | Antonin Descampe <antonin@gmail.com> | 2016-05-15 13:15:01 +0200 |
|---|---|---|
| committer | Antonin Descampe <antonin@gmail.com> | 2016-05-15 13:15:01 +0200 |
| commit | 7269c8f7a6521568205583671a4ab45d149cc1af (patch) | |
| tree | c013349c99cac5f9273365d7bd6bc07e37ba9cad /tools/ctest_scripts | |
| parent | a66c3915190e5c75b5a9d66906685e1709e5ad5c (diff) | |
WIP automatic deployment
Diffstat (limited to 'tools/ctest_scripts')
| -rw-r--r-- | tools/ctest_scripts/travis-ci.cmake | 10 |
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..05a0e002 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}" ) |
