Verified Commit 661b947d authored by Karel Koci's avatar Karel Koci 🤘
Browse files

gitlab-ci: tests medkits generation against HBK when default is HBS

We build only primary branches and we need build packages to test medkit
generation. In most cases relying on default PUBLISH_BRANCH is exactly
what we want but in case of HBK branch the target is correctly set to
HBS. That is too far off branch and it makes more sense to just tests
against HBK. This overrides tests to be executed against HBK if publish
branch is HBS.
parent 99cef492
Pipeline #77651 passed with stages
in 20 minutes and 9 seconds
......@@ -30,7 +30,7 @@ prepare_turris1x:
.medkit:
stage: build
script:
- './generate_medkits -t "$BOARD"'
- './generate_medkits -t "$BOARD" $(. defaults.sh && [ "$PUBLISH_BRANCH" = "hbs" ] && echo -b hbk)'
- '[ -f "generated_medkits/$BOARD-medkit-latest.tar.gz" ]'
- '[ -f "generated_medkits/$BOARD-medkit-min-latest.tar.gz" ]'
......@@ -50,7 +50,7 @@ medkit_turris1x:
variables:
BOARD: turris1x
## Update lists ##################################################################
## Updater lists #################################################################
lists_generate:
stage: build
script:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment