Add .gitlab-ci.yml

This commit is contained in:
杨威
2019-05-21 13:01:15 +08:00
parent d9499b58eb
commit 88a020d4c1

34
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,34 @@
stages:
- build
#- test
- package
#- release
build:
stage: build
script:
- mkdir -p build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_PREFIX_PATH=$BUILD_PREFIX
- make
tags:
- share
variables:
BUILD_TYPE: "Debug"
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