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
13f277a5
Unverified
Commit
13f277a5
authored
1 year ago
by
Oliver Smith
Browse files
Options
Downloads
Patches
Plain Diff
CI: use gitlab-ci
parent
6ffb1748
No related branches found
No related tags found
No related merge requests found
Pipeline
#189425
passed
1 year ago
Stage: lint
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.build.yml
+0
-26
0 additions, 26 deletions
.build.yml
.ci/note.sh
+3
-2
3 additions, 2 deletions
.ci/note.sh
.gitlab-ci.yml
+39
-0
39 additions, 0 deletions
.gitlab-ci.yml
with
42 additions
and
28 deletions
.build.yml
deleted
100644 → 0
+
0
−
26
View file @
6ffb1748
image
:
alpine/edge
packages
:
-
sudo
sources
:
-
https://git.sr.ht/~postmarketos/pmbootstrap
tasks
:
-
note
:
|
pmbootstrap/.ci/note.sh
-
shellcheck
:
|
cd pmbootstrap
sudo .ci/shellcheck.sh
-
ruff
:
|
cd pmbootstrap
sudo .ci/ruff.sh
-
vermin
:
|
cd pmbootstrap
sudo .ci/vermin.sh
-
codespell
:
|
cd pmbootstrap
sudo .ci/codespell.sh
-
pytest
:
|
cd pmbootstrap
sudo .ci/pytest.sh
artifacts
:
-
"
.local/var/pmbootstrap/log.txt"
-
"
.local/var/pmbootstrap/log_testsuite.txt"
This diff is collapsed.
Click to expand it.
.ci/note.sh
+
3
−
2
View file @
13f277a5
#!/bin/sh -e
printf
"
\n
"
printf
"
==============================================
\n
"
printf
"PROTIP: use"
printf
"
\e
[1;3
2
mpmbootstrap ci
\e
[0m"
printf
"
\e
[1;3
3
mpmbootstrap ci
\e
[0m"
printf
" to run these scripts locally.
\n
"
printf
"==============================================
\n
"
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
0 → 100644
+
39
−
0
View file @
13f277a5
image
:
alpine:edge
before_script
:
-
"
.ci/note.sh"
-
"
echo
'https://dl-cdn.alpinelinux.org/alpine/edge/testing'
>>
/etc/apk/repositories"
-
"
adduser
-D
build"
stages
:
-
lint
-
test
codespell
:
stage
:
lint
script
:
-
"
.ci/codespell.sh"
pytest
:
stage
:
test
script
:
-
"
apk
-q
add
git"
-
"
su
build
-c
'git
config
--global
user.email
ci@ci'"
-
"
su
build
-c
'git
config
--global
user.name
CI'"
-
"
echo
'build
ALL=(ALL)
NOPASSWD:
ALL'
>>
/etc/sudoers"
-
"
.ci/pytest.sh"
ruff
:
stage
:
lint
script
:
-
"
.ci/ruff.sh"
shellcheck
:
stage
:
lint
script
:
-
"
.ci/shellcheck.sh"
vermin
:
stage
:
lint
script
:
-
"
.ci/vermin.sh"
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