From 8ba0de3e45aec595361a4f321e67dfd745d492d3 Mon Sep 17 00:00:00 2001 From: Antonin Descampe Date: Sun, 15 May 2016 00:42:54 +0200 Subject: Update travis and appveyor to enable automatic releases on tag commit --- tools/travis-ci/run.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tools') diff --git a/tools/travis-ci/run.sh b/tools/travis-ci/run.sh index e8c5a281..2357cff1 100755 --- a/tools/travis-ci/run.sh +++ b/tools/travis-ci/run.sh @@ -272,4 +272,18 @@ New/unknown test failure found!!! fi fi +echo "OPJ_CI_DEPLOY: ${OPJ_CI_DEPLOY}" +echo "TRAVIS_TAG: ${TRAVIS_TAG}" +echo "APPVEYOR_REPO_TAG: ${APPVEYOR_REPO_TAG}" +echo "APPVEYOR_REPO_TAG_NAME: ${APPVEYOR_REPO_TAG_NAME}" +if [ "${OPJ_CI_DEPLOY:-}" == "1" ]; then + if [ "${TRAVIS_TAG:-}" != "" ]; then + cpack -G ZIP -P "OpenJPEG-${TRAVIS_TAG}-${OPJ_BUILDNAME_TEST}.zip" + fi + if [ "${APPVEYOR_REPO_TAG:-}" == "true" ]; then + cpack -G ZIP -P "OpenJPEG-${APPVEYOR_REPO_TAG_NAME}-${OPJ_BUILDNAME_TEST}.zip" + appveyor PushArtifact "OpenJPEG-${APPVEYOR_REPO_TAG_NAME}-${OPJ_BUILDNAME_TEST}.zip" + fi +fi + exit ${OPJ_CI_RESULT} -- cgit v1.2.3