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
9821aa6f
Unverified
Commit
9821aa6f
authored
5 years ago
by
Daniele Debernardi
Committed by
Oliver Smith
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
CI: return output of common.run_pmbootstrap (MR 1132)
(cherry picked from commit
233ec0d2
)
parent
275f8694
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci/common.py
+6
-6
6 additions, 6 deletions
.gitlab-ci/common.py
with
6 additions
and
6 deletions
.gitlab-ci/common.py
+
6
−
6
View file @
9821aa6f
...
...
@@ -44,14 +44,14 @@ def commit_message_has_string(needle):
return
needle
in
run_git
([
"
show
"
,
"
-s
"
,
"
--format=full
"
,
"
HEAD
"
])
def
run_pmbootstrap
(
parameters
):
def
run_pmbootstrap
(
parameters
,
output_return
=
False
):
"""
Run pmbootstrap with the pmaports dir as --aports
"""
cmd
=
[
"
pmbootstrap
"
,
"
--aports
"
,
get_pmaports_dir
()]
+
parameters
process
=
subprocess
.
P
open
(
cmd
)
process
.
communicate
(
)
if
process
.
returncode
!=
0
:
print
(
"
** Test failed
"
)
exit
(
1
)
stdout
=
subprocess
.
P
IPE
if
output_return
else
None
result
=
subprocess
.
run
(
cmd
,
stdout
=
stdout
,
universal_newlines
=
True
)
result
.
check_
returncode
()
if
output_return
:
return
result
.
stdout
def
get_upstream_branch
():
...
...
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