Add gitlab ci configuration file.

This commit is contained in:
icex2 2019-11-08 20:34:22 +00:00
parent dc5c4d90d6
commit d17570501c

34
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,34 @@
image: debian
stages:
- build
- release
build:
stage: build
before_script:
- apt-get update && apt-get -qq install git make zip > /dev/null
script:
- make
artifacts:
name: "$CI_COMMIT_SHORT_SHA-$CI_JOB_NAME"
paths:
- build
release:
stage: release
variables:
GIT_STRATEGY: none
dependencies:
- build
before_script:
- apt-get update && apt-get -qq install zip > /dev/null
script:
- mv build/bemanitools-supplements.zip ./bemanitools-supplements.zip
- find . -mindepth 1 ! -regex '^./bemanitools-supplements.zip' -delete
- unzip bemanitools-supplements.zip
- rm bemanitools-supplements.zip
artifacts:
name: "$CI_COMMIT_SHORT_SHA-$CI_JOB_NAME"
paths:
- ./*