🐎ci(ci): 增加发布testing源逻辑
This commit is contained in:
@@ -48,6 +48,12 @@ develop_build_debug:
|
|||||||
variables:
|
variables:
|
||||||
BUILD_TYPE: Debug
|
BUILD_TYPE: Debug
|
||||||
PACKAGE: 1
|
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:
|
artifacts:
|
||||||
name: "tcpdump_mesa-$CI_COMMIT_REF_NAME-debug"
|
name: "tcpdump_mesa-$CI_COMMIT_REF_NAME-debug"
|
||||||
paths:
|
paths:
|
||||||
@@ -63,6 +69,12 @@ develop_build_release:
|
|||||||
variables:
|
variables:
|
||||||
BUILD_TYPE: RelWithDebInfo
|
BUILD_TYPE: RelWithDebInfo
|
||||||
PACKAGE: 1
|
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:
|
artifacts:
|
||||||
name: "tcpdump_mesa-$CI_COMMIT_REF_NAME-release"
|
name: "tcpdump_mesa-$CI_COMMIT_REF_NAME-release"
|
||||||
paths:
|
paths:
|
||||||
@@ -88,8 +100,6 @@ release_build_release:
|
|||||||
- build/*.rpm
|
- build/*.rpm
|
||||||
only:
|
only:
|
||||||
- tags
|
- tags
|
||||||
except:
|
|
||||||
- /^v[0-9].*-testing$/i
|
|
||||||
|
|
||||||
release_build_release_devel:
|
release_build_release_devel:
|
||||||
stage: build
|
stage: build
|
||||||
@@ -106,39 +116,4 @@ release_build_release_devel:
|
|||||||
paths:
|
paths:
|
||||||
- build/*.rpm
|
- build/*.rpm
|
||||||
only:
|
only:
|
||||||
- tags
|
- 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
|
|
||||||
10
ci/travis.sh
10
ci/travis.sh
@@ -37,6 +37,11 @@ if [ -n "${INSTALL_DEPENDENCY_LIBRARY}" ]; then
|
|||||||
yum install -y $INSTALL_DEPENDENCY_LIBRARY
|
yum install -y $INSTALL_DEPENDENCY_LIBRARY
|
||||||
source /etc/profile.d/framework.sh
|
source /etc/profile.d/framework.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $ASAN_OPTION ];then
|
||||||
|
source /opt/rh/devtoolset-7/enable
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir build || true
|
mkdir build || true
|
||||||
cd build
|
cd build
|
||||||
|
|
||||||
@@ -58,8 +63,3 @@ if [ -n "${UPLOAD}" ]; then
|
|||||||
python3 rpm_upload_tools.py ${PULP3_REPO_NAME} ${PULP3_DIST_NAME} *.rpm
|
python3 rpm_upload_tools.py ${PULP3_REPO_NAME} ${PULP3_DIST_NAME} *.rpm
|
||||||
fi
|
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
|
|
||||||
|
|||||||
@@ -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]+).*" "\\1" VERSION_MINOR "${VCS_TAG}")
|
||||||
string(REGEX REPLACE "^v[0-9]+\\.[0-9]+\\.([0-9]+).*" "\\1" VERSION_PATCH "${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)
|
if(NOT VERSION_MAJOR)
|
||||||
set(VERSION_MAJOR 1)
|
set(VERSION_MAJOR 1)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user