#before_deploy:
#- cmd: c:\cygwin\bin\bash ./tools/travis-ci/before_deploy.sh
deploy:
- release: openjpeg-$(appveyor_repo_tag_name)
+ #release: openjpeg-$(appveyor_repo_tag_name)
description: 'OpenJPEG $(appveyor_repo_tag_name) has been released'
provider: GitHub
auth_token:
# 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
OPJ_CI_DEPLOY=1 # unused for now
OPJ_CUR_DIR=${PWD}
else
OPJ_PACK_GENERATOR="ZIP"
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}"
cd ${OPJ_BINARY_DIR}
cmake -D CPACK_GENERATOR:STRING=${OPJ_PACK_GENERATOR} -D CPACK_PACKAGE_FILE_NAME:STRING=${OPJ_PACK_NAME} ${OPJ_SOURCE_DIR}