summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
author“pengxuanzheng” <[email protected]>2022-03-02 07:53:16 +0000
committer“pengxuanzheng” <[email protected]>2022-03-02 09:29:17 +0000
commite7f4277894c8654e47565f01f22d4ffba3db661e (patch)
tree4e757c52d4eba2c2e2804c10815d255945675097 /ci
parent9d688a9e9eedc7811013beedf43ced03c5f62495 (diff)
🧪 test: 增加gtest
Diffstat (limited to 'ci')
-rw-r--r--ci/travis.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/ci/travis.sh b/ci/travis.sh
index 40a2780c..faadc35c 100644
--- a/ci/travis.sh
+++ b/ci/travis.sh
@@ -44,6 +44,7 @@ cmake3 -DCMAKE_CXX_FLAGS=$CXX_FLAGS \
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
-DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX \
-DENABLE_DEVEL=$ENABLE_DEVEL_SWITCH \
+ -DHOS_MOCK=$HOS_MOCK \
..
make
@@ -57,8 +58,9 @@ if [ -n "${UPLOAD}" ]; then
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
+if [ -n "${UPLOAD_SYMBOL_FILES}" ]; then
+ rpm -i $SYMBOL_TARGE*debuginfo*.rpm
+ _symbol_file=`find /usr/lib/debug/ -name "$SYMBOL_TARGET*.so*.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