pmbootstrap/pmb/helpers
Oliver Smith 0bcd58765c
pmbootstrap ci: new command
Add a new command that makes running CI scripts easy. The user goes to
the git repository of choice, which has CI scripts written in a certain
format, and then runs 'pmbootstrap ci' to get an interactive selection
of which of the available scripts to run (or "all"). Specifying one or
multiple scripts on the command-line is also possible, e.g.

$ pmbootstrap ci flake8
$ pmbootstrap ci shellcheck flake8 pytest
$ pmbootstrap ci --all

pmbootstrap then either runs the selected scripts in a chroot (and
installs dependencies as defined at the beginning of the CI scripts), or
natively (with checks inside the scripts for having dependencies
installed). Running natively is needed for .ci/pytest.sh in this
pmbootstrap.git repository, as pmbootstrap can't run inside pmbootstrap.
Running natively or in chroot is defined in an "# Options: " comment
inside the script file.

Documentation for this command and how script files look like:
https://postmarketos.org/pmb-ci
2022-10-25 20:31:19 +02:00
..
__init__.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
apk.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
aportupgrade.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
args.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
cli.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
devices.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
file.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
frontend.py pmbootstrap ci: new command 2022-10-25 20:31:19 +02:00
git.py pmbootstrap ci: new command 2022-10-25 20:31:19 +02:00
http.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
lint.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
logging.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
mount.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
other.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
package.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
pkgrel_bump.py treewide: fix various lint errors (MR 2197) 2022-08-19 10:40:25 +02:00
pmaports.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
repo.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
repo_missing.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
run.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
run_core.py pmb.helpers.run: only pass stdin where useful (MR 2197) 2022-08-19 10:40:25 +02:00
status.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
ui.py Happy new year 2022! 2022-01-02 22:39:14 +01:00