🐎ci(ci): 增加发布testing源逻辑

This commit is contained in:
yangwei
2020-11-03 10:36:17 +08:00
parent 8fdcb9ac35
commit 6bbc59264d
3 changed files with 22 additions and 43 deletions

View File

@@ -48,6 +48,12 @@ develop_build_debug:
variables:
BUILD_TYPE: Debug
PACKAGE: 1
UPLOAD: 1
TESTING_VERSION_BUILD: 1
ENABLE_DEVEL_SWITCH: "ON"
ASAN_OPTION: ADDRESS
PULP3_REPO_NAME: platform-testing-x86_64.el7
PULP3_DIST_NAME: platform-testing-x86_64.el7
artifacts:
name: "tcpdump_mesa-$CI_COMMIT_REF_NAME-debug"
paths:
@@ -63,6 +69,12 @@ develop_build_release:
variables:
BUILD_TYPE: RelWithDebInfo
PACKAGE: 1
UPLOAD: 1
TESTING_VERSION_BUILD: 1
ENABLE_DEVEL_SWITCH: "ON"
ASAN_OPTION: "OFF"
PULP3_REPO_NAME: platform-testing-x86_64.el7
PULP3_DIST_NAME: platform-testing-x86_64.el7
artifacts:
name: "tcpdump_mesa-$CI_COMMIT_REF_NAME-release"
paths:
@@ -88,8 +100,6 @@ release_build_release:
- build/*.rpm
only:
- tags
except:
- /^v[0-9].*-testing$/i
release_build_release_devel:
stage: build
@@ -106,39 +116,4 @@ release_build_release_devel:
paths:
- build/*.rpm
only:
- tags
except:
- /^v[0-9].*-testing$/i
testing_build_release:
stage: build
variables:
BUILD_TYPE: RelWithDebInfo
PACKAGE: 1
UPLOAD: 1
PULP3_REPO_NAME: platform-testing-x86_64.el7
PULP3_DIST_NAME: platform-testing-x86_64.el7
extends: .build_by_travis
artifacts:
name: "tcpdump_mesa-$CI_COMMIT_REF_NAME-release"
paths:
- build/*.rpm
only:
- /^v[0-9].*-testing$/i
testing_build_release_devel:
stage: build
variables:
BUILD_TYPE: RelWithDebInfo
ENABLE_DEVEL_SWITCH: "ON"
PACKAGE: 1
UPLOAD: 1
PULP3_REPO_NAME: platform-testing-x86_64.el7
PULP3_DIST_NAME: platform-testing-x86_64.el7
extends: .build_by_travis
artifacts:
name: "tcpdump_mesa-$CI_COMMIT_REF_NAME-release"
paths:
- build/*.rpm
only:
- /^v[0-9].*-testing$/i
- tags

View File

@@ -37,6 +37,11 @@ if [ -n "${INSTALL_DEPENDENCY_LIBRARY}" ]; then
yum install -y $INSTALL_DEPENDENCY_LIBRARY
source /etc/profile.d/framework.sh
fi
if [ $ASAN_OPTION ];then
source /opt/rh/devtoolset-7/enable
fi
mkdir build || true
cd build
@@ -58,8 +63,3 @@ 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

View File

@@ -20,6 +20,10 @@ string(REGEX REPLACE "^v([0-9]+)\\..*" "\\1" VERSION_MAJOR "${VCS_TAG}")
string(REGEX REPLACE "^v[0-9]+\\.([0-9]+).*" "\\1" VERSION_MINOR "${VCS_TAG}")
string(REGEX REPLACE "^v[0-9]+\\.[0-9]+\\.([0-9]+).*" "\\1" VERSION_PATCH "${VCS_TAG}")
if(VERSION_DAILY_BUILD)
set(VERSION_PATCH ${VERSION_PATCH}.${VERSION_DATE})
endif()
if(NOT VERSION_MAJOR)
set(VERSION_MAJOR 1)
endif()