-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
.gitlab-ci.yml
65 lines (61 loc) · 1.21 KB
/
.gitlab-ci.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- tests 🎳
- package 📦
- deploy 🚀
version:
only:
- master
except:
- tags
stage: tests 🎳
image:
name: $REGISTRY_URI/infra/ci-tools:latest
script:
- version-helper
tags:
- factory-plain
artifacts:
reports:
dotenv: build.env
package-zip:
only:
- master
except:
- tags
dependencies:
- version
stage: package 📦
image: $REGISTRY_URI/qgis-plugin-ci:latest
script:
- >
qgis-plugin-ci
-v
package ${VERSION}
--plugin-repo-url https://packages.3liz.org/pub/lizmap-qgis-plugin/${STATUS}/
--transifex-token ${TX_TOKEN}
tags:
- factory-plain
artifacts:
untracked: true
expose_as: 'QGIS package'
paths:
- lizmap.${VERSION}.zip
- plugins.xml
push-zip:
image: ${REGISTRY_URL}/factory-ci-runner:fabric-ci
only:
- master
except:
- tags
dependencies:
- version
- package-zip
stage: deploy 🚀
script:
# Upload into the plugin directory
- upload_to_packages_server lizmap.${VERSION}.zip pub/lizmap-qgis-plugin/${STATUS}/
- upload_to_packages_server plugins.xml pub/lizmap-qgis-plugin/${STATUS}/
tags:
- fabric