diff options
| author | 杨威 <[email protected]> | 2019-06-06 11:53:30 +0800 |
|---|---|---|
| committer | 杨威 <[email protected]> | 2019-06-06 11:53:30 +0800 |
| commit | 4cf7cfa5adb23463279ca09fe46a98e3ab21885a (patch) | |
| tree | 739716f4e498fe3d4348b515ca99a7a713863791 /.gitlab-ci.yml | |
| parent | f9569e9f93660d6514903167a993fa76a9606e1c (diff) | |
增加CI文件v2.8.2_beta
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..f515d3f --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,39 @@ +image: "git.mesalab.cn:7443/mesa_framework/framework-build-env:master" +stages: +- build +#- test +#- package +- release + +variables: + TOKEN: "LWsss-XPxWuP-Esv-dF7" + ARTIFACTS_JOB: "build" + +build: + stage: build + script: + - mkdir -p build + - cd build + - cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_PREFIX_PATH=$BUILD_PREFIX + - make + - make package + tags: + - share + variables: + BUILD_TYPE: "Debug" + BUILD_PREFIX: "/opt/MESA/" + only: + - tags + artifacts: + name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME-debug" + paths: + - ./build/*.rpm + +release: + stage: release + tags: + - share + only: + - tags + script: + - /bin/bash -x ./autorelease.sh $CI_API_V4_URL $CI_PROJECT_URL $CI_PROJECT_ID $TOKEN $CI_COMMIT_TAG $ARTIFACTS_JOB $CI_PROJECT_NAME |
