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:
- build
#- test
- package
#- package
#- release
build:
@@ -12,6 +12,7 @@ build:
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_PREFIX_PATH=$BUILD_PREFIX
- make
- make package
tags:
- share
variables:
@@ -19,17 +20,7 @@ build:
BUILD_PREFIX: "/opt/MESA/"
except:
- tags
package:
stage: package
extends: build
script:
- make package
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME-debug"
paths:
- ./build/*.rpm
tags:
- share
except:
- tags
- ./build/*.rpm