summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2020-09-23 14:26:20 +0800
committerfengweihao <[email protected]>2020-09-23 14:26:20 +0800
commita9f38024f0789b64be187466d23c9fe4fee88ed9 (patch)
treefc2500329bdd0bc338bd63095c9687f408b4b25d /ci
parent502626e5503d18219cb6ae5bef60e3f76b15e0c5 (diff)
CI上传YUM仓库
支持tcmall
Diffstat (limited to 'ci')
-rw-r--r--ci/travis.sh19
1 files changed, 9 insertions, 10 deletions
diff --git a/ci/travis.sh b/ci/travis.sh
index a73b10a..5f0b6f1 100644
--- a/ci/travis.sh
+++ b/ci/travis.sh
@@ -50,13 +50,12 @@ if [ -n "${PACKAGE}" ]; then
make package
fi
-#if [ -n "${UPLOAD}" ]; then
- #cp ~/rpm_upload_tools.py ./
- #python3 rpm_upload_tools.py ${PULP3_REPO_NAME} ${PULP3_DIST_NAME} *.rpm
-#fi
-
-#if [ -n "${UPLOAD_SYMBOL_FILES}" ]; then
-# rpm -i tfe*debuginfo*.rpm
-# cp /usr/lib/debug/opt/tsg/tfe/bin/tfe.debug /tmp/tfe.debuginfo.${CI_COMMIT_SHORT_SHA}
-# sentry-cli upload-dif -t elf /tmp/tfe.debuginfo.${CI_COMMIT_SHORT_SHA}
-#fi \ No newline at end of file
+if [ -n "${UPLOAD}" ]; then
+ cp ~/rpm_upload_tools.py ./
+ python3 rpm_upload_tools.py ${PULP3_REPO_NAME} ${PULP3_DIST_NAME} *.rpm
+
+ rpm -i $SYMBOL_TARGET*debuginfo*.rpm
+ _symbol_file=`find /usr/lib/debug/ -name "$SYMBOL_TARGET*.debug"`
+ cp $_symbol_file ${_symbol_file}info.${CI_COMMIT_SHORT_SHA}
+ sentry-cli upload-dif -t elf ${_symbol_file}info.${CI_COMMIT_SHORT_SHA}
+fi \ No newline at end of file