summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
author刘学利 <[email protected]>2020-10-09 11:00:18 +0800
committer刘学利 <[email protected]>2020-10-09 11:00:18 +0800
commit5084bef5bf1c6ac1a352c3deed4bbc786aa53c13 (patch)
tree49308fbbf925d221cee0ac69171b7a263a1c3345 /ci
parentd80b5fbad46c4a3d6d74556a7d56ae9672d2d931 (diff)
Fix memory out of bound
Diffstat (limited to 'ci')
-rw-r--r--ci/travis.sh21
1 files changed, 14 insertions, 7 deletions
diff --git a/ci/travis.sh b/ci/travis.sh
index 64780e4..a103aa1 100644
--- a/ci/travis.sh
+++ b/ci/travis.sh
@@ -33,7 +33,10 @@ env | sort
: "${COMPILER_IS_GNUCXX:=OFF}"
# Install dependency from YUM
-#yum install -y mrzcpd framework numactl-devel zlib-devel librdkafka-devel systemd-devel
+if [ -n "${INSTALL_DEPENDENCY_LIBRARY}" ]; then
+ yum install -y $INSTALL_DEPENDENCY_LIBRARY
+fi
+
mkdir build || true
cd build
@@ -41,6 +44,8 @@ cmake3 -DCMAKE_CXX_FLAGS=$CXX_FLAGS \
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
-DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX \
-DENABLE_DEVEL=$ENABLE_DEVEL_SWITCH \
+ -DASAN_OPTION=$ASAN_OPTION \
+ -DVERSION_DAILY_BUILD=$TESTING_VERSION_BUILD \
..
make
@@ -49,13 +54,15 @@ if [ -n "${PACKAGE}" ]; then
make package
fi
-if [ -n "${UPLOAD}" ]; then
+
+if [ -n "${UPLOAD_RPM}" ]; 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
+if [ -n "${UPLOAD_SYMBOL_FILES}" ]; then
+ rpm -i $SYMBOL_TARGET*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