Update .gitlab-ci.yml

This commit is contained in:
杨威
2019-05-21 13:05:38 +08:00
parent 0e58592056
commit 6cb6a2dce5

View File

@@ -2,7 +2,7 @@ image: "git.mesalab.cn:7443/mesa_framework/framework-build-env:master"
stages: stages:
- build - build
#- test #- test
- package #- package
#- release #- release
build: build:
@@ -12,6 +12,7 @@ build:
- cd build - cd build
- cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_PREFIX_PATH=$BUILD_PREFIX - cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_PREFIX_PATH=$BUILD_PREFIX
- make - make
- make package
tags: tags:
- share - share
variables: variables:
@@ -19,17 +20,7 @@ build:
BUILD_PREFIX: "/opt/MESA/" BUILD_PREFIX: "/opt/MESA/"
except: except:
- tags - tags
package:
stage: package
extends: build
script:
- make package
artifacts: artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME-debug" name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME-debug"
paths: paths:
- ./build/*.rpm - ./build/*.rpm
tags:
- share
except:
- tags