summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2016-05-15 14:18:14 +0200
committerAntonin Descampe <antonin@gmail.com>2016-05-15 14:18:14 +0200
commit177fdd94c096cbc3a12c203bb83f1139af4966a0 (patch)
treea530b560297692daf02d7c0e99ab60ded58bfbca /tools
parenta09118682573469f9d9b889634bbfec0ffdde2fe (diff)
WIP automatic deployment
Diffstat (limited to 'tools')
-rwxr-xr-xtools/travis-ci/run.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/travis-ci/run.sh b/tools/travis-ci/run.sh
index f65da7b0..f0d39a87 100755
--- a/tools/travis-ci/run.sh
+++ b/tools/travis-ci/run.sh
@@ -193,7 +193,10 @@ 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
+ OPJ_CUR_DIR=${PWD}
+ cd ${OPJ_BINARY_DIR}
cmake -D CPACK_GENERATOR:STRING=ZIP ${OPJ_SOURCE_DIR}
+ cd ${OPJ_CUR_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