-
-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
46 lines (43 loc) · 1004 Bytes
/
.gitlab-ci.yml
File metadata and controls
46 lines (43 loc) · 1004 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
variables:
PRODUCT_NAME: lizmap_qgis_plugin
stages:
- build
- deploy
build:
image: $REGISTRY_URI/factory-ci-runner:qgis-plugin-ci
stage: build
tags:
- factory-plain
rules:
- if: '$CI_COMMIT_TAG =~ /^(?:release-|v)?\d+\.\d+\.\d+(?:-.*)?$/'
variables:
PRERELEASE: ""
- if: $RELEASE_BRANCH == "true"
variables:
PRERELEASE: "--pre"
script:
- >-
qt-transifex -vv pull
--transifex-token ${TX_TOKEN}
--compile
- echo "Building plugin ${PRODUCT_NAME}"
- yapt-pkg package $PRERELEASE
- echo "PACKAGE=`ls -1 *.zip`" > build.env
- cat build.env
artifacts:
reports:
dotenv: build.env
paths:
- "*.zip"
deploy:
image: ${REGISTRY_URL}/factory-ci-runner:fabric-ci
tags:
- fabric
stage: deploy
rules:
- if: '$CI_COMMIT_TAG =~ /^(?:release-|v)?\d+\.\d+\.\d+(?:-.*)?$/'
- if: $RELEASE_BRANCH == "true"
dependencies:
- build
script:
- upload_plugins ${PRODUCT_NAME} ${PACKAGE}