summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2016-05-15 00:42:54 +0200
committerAntonin Descampe <antonin@gmail.com>2016-05-15 00:42:54 +0200
commit8ba0de3e45aec595361a4f321e67dfd745d492d3 (patch)
tree81f8a6b1d0f3a6a9999540ec103459d7922573c1 /tools
parent2e0779e2505f98ea43eced3ee650a2a61a6b017c (diff)
Update travis and appveyor to enable automatic releases on tag commit
Diffstat (limited to 'tools')
-rwxr-xr-xtools/travis-ci/run.sh14
1 files changed, 14 insertions, 0 deletions
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}