Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pmbootstrap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
postmarketOS
pmbootstrap
Commits
4f3ede33
Unverified
Commit
4f3ede33
authored
5 months ago
by
Clayton Craft
Committed by
Caleb Connolly
5 months ago
Browse files
Options
Downloads
Patches
Plain Diff
ci: add basic integration testing for pmb (MR 2444)
parent
35cd6408
No related branches found
No related tags found
1 merge request
!2444
ci: add basic integration test for pmb
Pipeline
#208667
passed
5 months ago
Stage: lint
Stage: deploy
Stage: test
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.ci/integration.sh
+34
-0
34 additions, 0 deletions
.ci/integration.sh
.gitlab-ci.yml
+16
-0
16 additions, 0 deletions
.gitlab-ci.yml
with
50 additions
and
0 deletions
.ci/integration.sh
0 → 100755
+
34
−
0
View file @
4f3ede33
#!/bin/sh -e
set
-x
if
[
"
$(
id
-u
)
"
=
0
]
;
then
exec
su
"
${
TESTUSER
:-
build
}
"
-c
"sh -e
$0
"
fi
pmbootstrap
()
{
./pmbootstrap.py
--details-to-stdout
"
$@
"
}
# Make sure that the work folder format is up to date, and that there are no
# mounts from aborted test cases (pmbootstrap#1595)
echo
"Initializing pmbootstrap"
yes
''
| ./pmbootstrap.py
--details-to-stdout
init
pmbootstrap work_migrate
pmbootstrap
-q
shutdown
# TODO: make device configurable?
device
=
"qemu-amd64"
# TODO: make UI configurable?
ui
=
"phosh"
pmbootstrap config device
"
$device
"
pmbootstrap config ui
"
$ui
"
# NOTE: --no-image is used because building images makes pmb try to
# "modprobe loop". This fails in CI.
echo
"Building
$ui
image for
$device
"
pmbootstrap
-y
install
--zap
--password
147147
--no-image
echo
"Building
$ui
image for
$device
, with FDE"
pmbootstrap
-y
install
--zap
--password
147147
--fde
--no-image
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
16
−
0
View file @
4f3ede33
...
...
@@ -95,3 +95,19 @@ deploy:
-
rsync -hrvz --delete -e "ssh -p ${SSH_PORT}" public/ "${SSH_HOST}":/var/www/docs.postmarketos.org/pmbootstrap/
environment
:
name
:
deploy
integration
:
stage
:
test
before_script
:
-
*global_before_scripts
-
apk upgrade -U
-
apk add doas git losetup python3 openssl
-
echo "permit nopass build" > /etc/doas.d/ci-user.conf
script
:
-
"
.ci/integration.sh"
after_script
:
-
"
cp
/home/build/.local/var/pmbootstrap/log.txt
."
artifacts
:
when
:
on_failure
paths
:
-
"
log.txt"
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