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
tango-tfe/.gitlab-ci.yml

75 lines
1.4 KiB
YAML

image: "git.mesalab.cn:7443/mesa_framework/framework:master"
variables:
GIT_STRATEGY: "clone"
INSTALL_PREFIX: "/home/tsg/tfe"
stages:
- build
- package
- deploy
.build_by_travis:
before_script:
- mkdir -p /tmp/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/$CI_PROJECT_NAMESPACE/
- ln -s $CI_PROJECT_DIR /tmp/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/$CI_PROJECT_PATH
- cd /tmp/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/$CI_PROJECT_PATH
script:
- chmod +x ./ci/travis.sh
- ./ci/travis.sh
.deploy_to_package_server:
script:
- cp build/*.rpm $RPM_REPO_PATH
- createrepo --update $RPM_REPO_PATH
- rm -rf build
build_debug:
stage: build
variables:
BUILD_TYPE: Debug
extends: .build_by_travis
tags:
- share
except:
- tags
build_release:
stage: build
variables:
BUILD_TYPE: RelWithDebInfo
extends: .build_by_travis
tags:
- share
except:
- tags
package_debug:
stage: package
variables:
BUILD_TYPE: Debug
PACKAGE: 1
extends: .build_by_travis
artifacts:
name: "tfe-install-$CI_COMMIT_REF_NAME-debug"
paths:
- build/*.rpm
tags:
- share
only:
- tags
package_release:
stage: package
variables:
BUILD_TYPE: RelWithDebInfo
PACKAGE: 1
extends: .build_by_travis
artifacts:
name: "tfe-install-$CI_COMMIT_REF_NAME-release"
paths:
- build/*.rpm
tags:
- share
only:
- tags