This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
public-resources-benchmark-…/.gitlab-ci.yml
2022-03-30 10:11:30 +08:00

117 lines
2.8 KiB
YAML

variables:
GIT_STRATEGY: "clone"
BUILD_PADDING_PREFIX: /tmp/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX_PREFIX_PREFIX_PREFIX_PREFIX_PREFIX/
BUILD_IMAGE_CENTOS7: "git.mesalab.cn:7443/mesa_platform/build-env:master"
BUILD_IMAGE_CENTOS8: "git.mesalab.cn:7443/mesa_platform/build-env:rockylinux"
INSTALL_PREFIX: "/home/mesasoft/"
SYMBOL_TARGET: benchmark_pcap
stages:
- build
.build_by_travis_for_centos7:
before_script:
- mkdir -p $BUILD_PADDING_PREFIX/$CI_PROJECT_NAMESPACE/
- ln -s $CI_PROJECT_DIR $BUILD_PADDING_PREFIX/$CI_PROJECT_PATH
- cd $BUILD_PADDING_PREFIX/$CI_PROJECT_PATH
- chmod +x ./ci/travis.sh
script:
- yum makecache fast
- ./ci/travis.sh
- cd build
tags:
- share
.build_by_travis_for_centos8:
before_script:
- mkdir -p $BUILD_PADDING_PREFIX/$CI_PROJECT_NAMESPACE/
- ln -s $CI_PROJECT_DIR $BUILD_PADDING_PREFIX/$CI_PROJECT_PATH
- cd $BUILD_PADDING_PREFIX/$CI_PROJECT_PATH
- chmod +x ./ci/travis.sh
script:
- yum makecache
- ./ci/travis.sh
- cd build
tags:
- share
develop_build_release_for_centos7:
stage: build
image: $BUILD_IMAGE_CENTOS7
extends: .build_by_travis_for_centos7
variables:
BUILD_TYPE: RelWithDebInfo
PACKAGE: 1
UPLOAD: 1
PULP3_REPO_NAME: platform-testing-x86_64.el7
PULP3_DIST_NAME: platform-testing-x86_64.el7
artifacts:
name: "benchmark_pcap-$CI_COMMIT_REF_NAME-release"
paths:
- build/*.rpm
tags:
- share
only:
- /^dev*.*$/i
- /^rel*.*$/i
- /^master.*$/i
release_build_release_for_centos7:
stage: build
image: $BUILD_IMAGE_CENTOS7
variables:
BUILD_TYPE: RelWithDebInfo
PACKAGE: 1
UPLOAD: 1
PULP3_REPO_NAME: platform-stable-x86_64.el7
PULP3_DIST_NAME: platform-stable-x86_64.el7
extends: .build_by_travis_for_centos7
artifacts:
name: "benchmark_pcap-$CI_COMMIT_REF_NAME-release"
paths:
- build/*.rpm
tags:
- share
only:
- tags
develop_build_release_for_centos8:
stage: build
image: $BUILD_IMAGE_CENTOS8
extends: .build_by_travis_for_centos8
variables:
BUILD_TYPE: RelWithDebInfo
PACKAGE: 1
UPLOAD: 1
PULP3_REPO_NAME: platform-testing-x86_64.el8
PULP3_DIST_NAME: platform-testing-x86_64.el8
artifacts:
name: "benchmark_pcap-$CI_COMMIT_REF_NAME-release"
paths:
- build/*.rpm
tags:
- share
only:
- /^dev*.*$/i
- /^rel*.*$/i
- /^master.*$/i
release_build_release_for_centos8:
stage: build
image: $BUILD_IMAGE_CENTOS8
variables:
BUILD_TYPE: RelWithDebInfo
PACKAGE: 1
UPLOAD: 1
PULP3_REPO_NAME: platform-stable-x86_64.el8
PULP3_DIST_NAME: platform-stable-x86_64.el8
extends: .build_by_travis_for_centos8
artifacts:
name: "benchmark_pcap-$CI_COMMIT_REF_NAME-release"
paths:
- build/*.rpm
tags:
- share
only:
- tags