-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
91 lines (78 loc) · 1.6 KB
/
.gitlab-ci.yml
File metadata and controls
91 lines (78 loc) · 1.6 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
variables:
PRODUCT_NAME: "roadnetwork"
stages:
- lint
- test
- build
- deploy
- release
# ------------
# Lint
# ------------
lint:
image: ${REGISTRY_URL}/factory-ci-runner:qgis-${QGIS_VERSION}
tags:
- factory-plain
stage: lint
script:
- pip install --quiet -r requirements/dev.txt
- make lint
parallel:
matrix:
- QGIS_VERSION: ["ltr", "release"]
# ------------
# Tests
# ------------
.tests:
image: ${REGISTRY_URL}/factory-ci-runner:factory-ci
tags:
- factory-dind
stage: test
script:
- make docker-test QGIS_VERSION=$QGIS_FLAVOR
qgis-tests:
extends: .tests
parallel:
matrix:
- QGIS_FLAVOR: [
"3.34",
"3.40",
"3.44",
]
# NOTE: Following jobs are triggered only on RELEASE_BRANCH == "true"
#
# Packages
#
build:
image: $REGISTRY_URI/factory-ci-runner:qgis-plugin-ci
tags:
- factory-plain
stage: build
rules:
- if: '$CI_COMMIT_TAG =~ /^(?:release-|v)?\d+\.\d+\.\d+(?:-.*)?$/'
variables:
PRERELEASE: ""
- if: $RELEASE_BRANCH == "true"
variables:
PRERELEASE: "--pre"
script:
- echo "Building plugin ${PRODUCT_NAME}"
- yapt-pkg package $PRERELEASE
- echo "PACKAGE=`ls -1 *.zip`" > build.env
artifacts:
reports:
dotenv: build.env
paths:
- "*.zip"
deploy:
image: $REGISTRY_URI/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}