1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-13 03:19:47 +03:00

pmb ci: add --fast argument

Make it easy to only run the fast tests.

Reviewed-by: Luca Weiss <luca@z3ntu.xyz>
Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20221111072354.3431-3-ollieparanoid@postmarketos.org%3E
This commit is contained in:
Oliver Smith 2022-11-11 08:23:54 +01:00
parent 3fd22104a8
commit 315621d5b8
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 10 additions and 2 deletions

View file

@ -550,8 +550,11 @@ def arguments_ci(subparser):
ret = subparser.add_parser("ci", help="run continuous integration scripts"
" locally of git repo in current"
" directory")
ret.add_argument("-a", "--all", action="store_true",
help="run all scripts")
script_args = ret.add_mutually_exclusive_group()
script_args.add_argument("-a", "--all", action="store_true",
help="run all scripts")
script_args.add_argument("-f", "--fast", action="store_true",
help="run fast scripts only")
ret.add_argument("scripts", nargs="*", metavar="script",
help="name of the CI script to run, depending on the git"
" repository")