forked from xfce-mirror/catfish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
37 lines (33 loc) · 857 Bytes
/
.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
image: xfce/xfce-build:latest
stages:
- build
translations:
extends: .translation
stage: build
script:
# Could validate translations, but for now just pass
- "true"
build:
stage: build
script:
- python3 setup.py sdist
rules:
# If there are changes to .po, never run. We also check
# BEFORE_SHA to see if it is zeros, in which case we are
# running on a manual trigger or scheduled pipeline. In
# that case, changes resolves to true so we need to check
# both.
- if: '$CI_COMMIT_BEFORE_SHA != "0000000000000000000000000000000000000000"'
changes:
- "po/*.po"
when: never
# Otherwise, always run
- when: always
.translation:
rules:
# If there are changes to .po, run this job
- changes:
- "po/*.po"
when: always
# Otherwise, never run
- when: never