acl/.gitlab-ci.yml

213 lines
4.9 KiB
YAML
Raw Normal View History

2017-09-19 11:51:10 +08:00
---
# The image used to start a container to do build jobs, which should has all
# build depencies installed
# coverage: '/total:[\t]*statements[\t]*\d+\.\d+%/'
# coverage: '/total:[\t]*\(statements\)[\t]*\d+\.\d+%/'
variables:
{
JOB_NAME: "${CI_PROJECT_NAME}"
}
.projecttest: &TEST
image: ${BUILDIMAGES}
stage: test
script:
- echo "OK"
.projectbuild: &BUILD
image: ${BUILDIMAGES}
stage: build
script:
- yum install -y zlib-devel
2020-06-28 10:00:11 +08:00
- cd packaging && make
2017-09-19 11:51:10 +08:00
artifacts:
paths:
2018-03-07 11:11:58 +08:00
- packaging/x86_64/acl-libs-*.rpm
2018-03-07 11:21:35 +08:00
- packaging/x86_64/acl-master-*.rpm
2017-09-19 11:51:10 +08:00
only:
- /^check-.*$/
except:
- tags@cdn-cloud/acl
.basepublishdev: &DEVEL
image: ${BUILDIMAGES}
stage: publish
script:
- yum install -y zlib-devel
2017-09-19 11:51:10 +08:00
- cd packaging && make
- cd ${CI_PROJECT_DIR} && /tools/publish.sh
coverage: '/lines......: \d+\.\d+%/'
only:
- /^devel-.*$/
artifacts:
paths:
2018-03-07 11:11:58 +08:00
- packaging/x86_64/acl-libs-*.rpm
2018-03-07 11:21:35 +08:00
- packaging/x86_64/acl-master-*.rpm
2017-09-19 11:51:10 +08:00
2020-06-10 10:33:20 +08:00
.lib_release: &LIB_RELEASE
2017-09-19 11:51:10 +08:00
image: ${BUILDIMAGES}
stage: publish
script:
- yum install -y zlib-devel
2020-06-28 10:00:11 +08:00
- cd packaging && make
2017-09-19 11:51:10 +08:00
- cd ${CI_PROJECT_DIR} && /tools/publish.sh -t prerelease
coverage: '/lines......: \d+\.\d+%/'
only:
- /^release-.*$/
artifacts:
paths:
2018-03-07 11:11:58 +08:00
- packaging/x86_64/acl-libs-*.rpm
2020-06-28 10:00:11 +08:00
#- packaging/x86_64/acl-master-*.rpm
2017-09-19 11:51:10 +08:00
2020-06-10 10:33:20 +08:00
.frame_release: &FRAME_RELEASE
image: ${BUILDIMAGES}
stage: publish
script:
- yum install -y zlib-devel
- cd packaging && make PKG_NAME=acl-master
- cd ${CI_PROJECT_DIR} && /tools/publish.sh -t prerelease
coverage: '/lines......: \d+\.\d+%/'
only:
- /^master-.*$/
artifacts:
paths:
- packaging/x86_64/*.rpm
2017-09-19 11:51:10 +08:00
stages:
2017-09-19 13:25:07 +08:00
- test
2017-09-19 11:51:10 +08:00
- publish
test:centos:
variables: {
BUILDIMAGES:
"docker-registry.qiyi.virtual/portal-process/centos-builder:6.4"
}
<<: *TEST
2017-09-19 13:32:29 +08:00
devel:centos5.8:
variables: {
BUILDIMAGES:
"docker-registry.qiyi.virtual/portal-process/centos-builder:5.8"
}
<<: *DEVEL
devel:centos5.9:
variables: {
BUILDIMAGES:
"docker-registry.qiyi.virtual/portal-process/centos-builder:5.9"
}
<<: *DEVEL
2017-09-19 11:51:10 +08:00
devel:centos6.4:
variables: {
BUILDIMAGES:
"docker-registry.qiyi.virtual/portal-process/centos-builder:6.4"
}
<<: *DEVEL
devel:centos6.6:
variables: {
BUILDIMAGES:
"docker-registry.qiyi.virtual/portal-process/centos-builder:6.6"
}
<<: *DEVEL
devel:centos7.0:
variables: {
BUILDIMAGES:
"docker-registry.qiyi.virtual/portal-process/centos-builder:7.0"
}
<<: *DEVEL
devel:centos7.2:
variables: {
BUILDIMAGES:
"docker-registry.qiyi.virtual/portal-process/centos-builder:7.2"
}
<<: *DEVEL
2020-06-10 10:33:20 +08:00
lib_release:centos5.8:
variables: {
BUILDIMAGES:
"docker-registry.qiyi.virtual/portal-process/centos-builder:5.8"
}
2020-06-10 10:33:20 +08:00
<<: *LIB_RELEASE
2020-06-10 10:33:20 +08:00
lib_release:centos5.9:
variables: {
BUILDIMAGES:
"docker-registry.qiyi.virtual/portal-process/centos-builder:5.9"
}
2020-06-10 10:33:20 +08:00
<<: *LIB_RELEASE
2020-06-10 10:33:20 +08:00
lib_release:centos6.4:
2017-09-19 11:51:10 +08:00
variables: {
BUILDIMAGES:
"docker-registry.qiyi.virtual/portal-process/centos-builder:6.4"
}
2020-06-10 10:33:20 +08:00
<<: *LIB_RELEASE
2017-09-19 11:51:10 +08:00
2020-06-10 10:33:20 +08:00
lib_release:centos6.6:
2017-09-19 11:51:10 +08:00
variables: {
BUILDIMAGES:
"docker-registry.qiyi.virtual/portal-process/centos-builder:6.6"
}
2020-06-10 10:33:20 +08:00
<<: *LIB_RELEASE
2017-09-19 11:51:10 +08:00
2020-06-10 10:33:20 +08:00
lib_release:centos7.0:
2017-09-19 11:51:10 +08:00
variables: {
BUILDIMAGES:
"docker-registry.qiyi.virtual/portal-process/centos-builder:7.0"
}
2020-06-10 10:33:20 +08:00
<<: *LIB_RELEASE
2017-09-19 11:51:10 +08:00
2020-06-10 10:33:20 +08:00
lib_release:centos7.2:
2017-09-19 11:51:10 +08:00
variables: {
BUILDIMAGES:
"docker-registry.qiyi.virtual/portal-process/centos-builder:7.2"
}
2020-06-10 10:33:20 +08:00
<<: *LIB_RELEASE
2020-06-10 10:33:20 +08:00
frame_release:centos5.8:
variables: {
BUILDIMAGES:
"docker-registry.qiyi.virtual/portal-process/centos-builder:5.8"
}
2020-06-10 10:33:20 +08:00
<<: *FRAME_RELEASE
2020-06-10 10:33:20 +08:00
frame_release:centos5.9:
variables: {
BUILDIMAGES:
"docker-registry.qiyi.virtual/portal-process/centos-builder:5.9"
}
2020-06-10 10:33:20 +08:00
<<: *FRAME_RELEASE
2020-06-10 10:33:20 +08:00
frame_release:centos6.4:
variables: {
BUILDIMAGES:
"docker-registry.qiyi.virtual/portal-process/centos-builder:6.4"
}
2020-06-10 10:33:20 +08:00
<<: *FRAME_RELEASE
2020-06-10 10:33:20 +08:00
frame_release:centos6.6:
variables: {
BUILDIMAGES:
"docker-registry.qiyi.virtual/portal-process/centos-builder:6.6"
}
2020-06-10 10:33:20 +08:00
<<: *FRAME_RELEASE
2020-06-10 10:33:20 +08:00
frame_release:centos7.0:
variables: {
BUILDIMAGES:
"docker-registry.qiyi.virtual/portal-process/centos-builder:7.0"
}
2020-06-10 10:33:20 +08:00
<<: *FRAME_RELEASE
2020-06-10 10:33:20 +08:00
frame_release:centos7.2:
variables: {
BUILDIMAGES:
"docker-registry.qiyi.virtual/portal-process/centos-builder:7.2"
}
2020-06-10 10:33:20 +08:00
<<: *FRAME_RELEASE