Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pmaports
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
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
postmarketOS
pmaports
Commits
72d8f92e
Verified
Commit
72d8f92e
authored
5 months ago
by
Clayton Craft
Browse files
Options
Downloads
Patches
Plain Diff
ci: also account for extra-repos when only verifying checksums
parent
426b9183
No related branches found
No related tags found
No related merge requests found
Pipeline
#209151
passed
5 months ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.ci/lib/build_changed_aports.py
+20
-12
20 additions, 12 deletions
.ci/lib/build_changed_aports.py
with
20 additions
and
12 deletions
.ci/lib/build_changed_aports.py
+
20
−
12
View file @
72d8f92e
...
...
@@ -55,14 +55,6 @@ if __name__ == "__main__":
# Package count sanity check
common
.
get_changed_packages_sanity_check
(
len
(
packages
))
# [ci:skip-build]: verify checksums and stop
verify_only
=
common
.
commit_message_has_string
(
"
[ci:skip-build]
"
)
if
verify_only
:
print
(
"
WARNING: not building changed packages ([ci:skip-build])!
"
)
print
(
"
verifying checksums:
"
+
"
,
"
.
join
(
packages
))
verify_checksums
(
packages
,
arch
)
sys
.
exit
(
0
)
# Load context
sys
.
argv
=
[
"
pmbootstrap.py
"
,
"
chroot
"
]
args
=
pmb
.
parse
.
arguments
()
...
...
@@ -103,13 +95,29 @@ if __name__ == "__main__":
print
(
f
"
no packages changed, which can be built for
{
arch
}
"
)
sys
.
exit
(
0
)
# Build packages
print
(
f
"
building in strict mode for
{
arch
}
:
{
'
,
'
.
join
(
packages
)
}
"
)
build_strict
(
packages
,
arch
)
verify_only
=
common
.
commit_message_has_string
(
"
[ci:skip-build]
"
)
if
verify_only
:
# [ci:skip-build]: verify checksums and stop
print
(
"
WARNING: not building changed packages ([ci:skip-build])!
"
)
print
(
"
verifying checksums:
"
+
"
,
"
.
join
(
packages
))
verify_checksums
(
packages
,
arch
)
else
:
# Build packages
print
(
f
"
building in strict mode for
{
arch
}
:
{
'
,
'
.
join
(
packages
)
}
"
)
build_strict
(
packages
,
arch
)
# Build packages in extra-repos/systemd
# FIXME: this should probably be more generic, if other repos are added later?
if
systemd_pkgs
:
print
(
f
"
building in strict mode for
{
arch
}
, from extra-repos/systemd:
{
'
,
'
.
join
(
packages
)
}
"
)
common
.
run_pmbootstrap
([
"
config
"
,
"
systemd
"
,
"
always
"
])
build_strict
(
systemd_pkgs
,
arch
)
verify_only
=
common
.
commit_message_has_string
(
"
[ci:skip-build]
"
)
if
verify_only
:
# [ci:skip-build]: verify checksums
print
(
"
WARNING: not building changed packages for extra-repos/systemd: ([ci:skip-build])!
"
)
print
(
"
verifying checksums:
"
+
"
,
"
.
join
(
packages
))
verify_checksums
(
packages
,
arch
)
else
:
# Build packages
build_strict
(
systemd_pkgs
,
arch
)
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