Fixing deployment condition
This commit is contained in:
parent
b3a8a69503
commit
620b06f566
|
@ -25,7 +25,7 @@ test: off
|
||||||
#before_deploy:
|
#before_deploy:
|
||||||
#- cmd: c:\cygwin\bin\bash ./tools/travis-ci/before_deploy.sh
|
#- cmd: c:\cygwin\bin\bash ./tools/travis-ci/before_deploy.sh
|
||||||
deploy:
|
deploy:
|
||||||
release: openjpeg-$(appveyor_repo_tag_name)
|
#release: openjpeg-$(appveyor_repo_tag_name)
|
||||||
description: 'OpenJPEG $(appveyor_repo_tag_name) has been released'
|
description: 'OpenJPEG $(appveyor_repo_tag_name) has been released'
|
||||||
provider: GitHub
|
provider: GitHub
|
||||||
auth_token:
|
auth_token:
|
||||||
|
|
|
@ -191,7 +191,14 @@ set +x
|
||||||
|
|
||||||
# Deployment if needed
|
# Deployment if needed
|
||||||
#---------------------
|
#---------------------
|
||||||
if [ "${OPJ_CI_INCLUDE_IF_DEPLOY:-}" == "1" ] && [ [ "${TRAVIS_TAG:-}" != "" ] || [ "${APPVEYOR_REPO_TAG:-}" == "true" ] ]; then
|
if [ "${TRAVIS_TAG:-}" != "" ]; then
|
||||||
|
OPJ_TAG_NAME=${TRAVIS_TAG}
|
||||||
|
elif [ "${APPVEYOR_REPO_TAG:-}" == "true" ]; then
|
||||||
|
OPJ_TAG_NAME=${APPVEYOR_REPO_TAG_NAME}
|
||||||
|
else
|
||||||
|
OPJ_TAG_NAME=""
|
||||||
|
fi
|
||||||
|
if [ "${OPJ_CI_INCLUDE_IF_DEPLOY:-}" == "1" ] && [ "${OPJ_TAG_NAME:-}" != "" ]; then
|
||||||
#if [ "${OPJ_CI_INCLUDE_IF_DEPLOY:-}" == "1" ]; then
|
#if [ "${OPJ_CI_INCLUDE_IF_DEPLOY:-}" == "1" ]; then
|
||||||
OPJ_CI_DEPLOY=1 # unused for now
|
OPJ_CI_DEPLOY=1 # unused for now
|
||||||
OPJ_CUR_DIR=${PWD}
|
OPJ_CUR_DIR=${PWD}
|
||||||
|
@ -200,13 +207,6 @@ if [ "${OPJ_CI_INCLUDE_IF_DEPLOY:-}" == "1" ] && [ [ "${TRAVIS_TAG:-}" != "" ] |
|
||||||
else
|
else
|
||||||
OPJ_PACK_GENERATOR="ZIP"
|
OPJ_PACK_GENERATOR="ZIP"
|
||||||
fi
|
fi
|
||||||
if [ "${TRAVIS_TAG:-}" != "" ]; then
|
|
||||||
OPJ_TAG_NAME=${TRAVIS_TAG}
|
|
||||||
elif [ "${APPVEYOR_REPO_TAG:-}" == "true" ]; then
|
|
||||||
OPJ_TAG_NAME=${APPVEYOR_REPO_TAG_NAME}
|
|
||||||
else
|
|
||||||
OPJ_TAG_NAME=test
|
|
||||||
fi
|
|
||||||
OPJ_PACK_NAME="openjpeg-${OPJ_TAG_NAME}-${TRAVIS_OS_NAME}-${OPJ_CI_ARCH}"
|
OPJ_PACK_NAME="openjpeg-${OPJ_TAG_NAME}-${TRAVIS_OS_NAME}-${OPJ_CI_ARCH}"
|
||||||
cd ${OPJ_BINARY_DIR}
|
cd ${OPJ_BINARY_DIR}
|
||||||
cmake -D CPACK_GENERATOR:STRING=${OPJ_PACK_GENERATOR} -D CPACK_PACKAGE_FILE_NAME:STRING=${OPJ_PACK_NAME} ${OPJ_SOURCE_DIR}
|
cmake -D CPACK_GENERATOR:STRING=${OPJ_PACK_GENERATOR} -D CPACK_PACKAGE_FILE_NAME:STRING=${OPJ_PACK_NAME} ${OPJ_SOURCE_DIR}
|
||||||
|
|
Loading…
Reference in New Issue