Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xfce4-dev-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xfce
xfce4-dev-tools
Commits
46f60426
Commit
46f60426
authored
4 years ago
by
Jason Yavorska
Committed by
Simon Steinbeiß
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Check BEFORE_SHA along with changes to .po files
parent
f9318560
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!17
Check BEFORE_SHA along with changes to .po files
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ci/build_project.yml
+35
-22
35 additions, 22 deletions
ci/build_project.yml
with
35 additions
and
22 deletions
ci/build_project.yml
+
35
−
22
View file @
46f60426
image
:
xfce/xfce-build:latest
# Set overall pipeline rules to avoid duplicated pipelines
# https://docs.gitlab.com/ee/ci/yaml/index.html#exclude-jobs-with-rules-from-certain-pipelines
workflow
:
rules
:
-
if
:
$CI_COMMIT_TAG
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
-
if
:
$CI_MERGE_REQUEST_IID
stages
:
-
build
-
distcheck
translations
:
extends
:
.translation
stage
:
build
script
:
# Could validate translations, but for now just pass
-
"
true"
build
:
extends
:
.make
stage
:
build
script
:
-
./autogen.sh
-
make
distcheck
:
extends
:
.make
stage
:
distcheck
script
:
-
make distcheck
.make
:
before_script
:
-
./autogen.sh
rules
:
# If there are changes to .po, never run
-
changes
:
# 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
translations
:
stage
:
build
script
:
# Could validate translations, but for now just pass
-
"
true"
.translation
:
rules
:
# If there are changes to .po, run this job
-
changes
:
...
...
@@ -29,16 +55,3 @@ translations:
when
:
always
# Otherwise, never run
-
when
:
never
distcheck
:
stage
:
distcheck
script
:
-
./autogen.sh
-
make distcheck
rules
:
# If there are changes to .po, never run
-
changes
:
-
"
po/*.po"
when
:
never
# Otherwise, always run
-
when
:
always
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment