ci: limit running of qemu tests

This uses a variable configured in the gitlab project [settings->CI/CD->Variables]
to restrict when the qemu job will run. This should prevent the job from running
on repo forks where an appropriate runner has not been configured/registered.

Note that if this variable is set in a repo where there is no runner registered to
run qemu, then any CI jobs in that repo will ultimately fail the qemu tests since
no runner will be found.
This commit is contained in:
Clayton Craft 2018-06-30 09:23:17 -07:00
parent ea934c7c56
commit c8e0ff3228
No known key found for this signature in database
GPG key ID: 7A3461CA187CEA54

View file

@ -51,6 +51,12 @@ pmbootstrap-tests:
pmbootstrap-qemu-tests:
stage: tests
only:
variables:
# This is configured in the gitlab project. Make sure there is a runner
# added to the project that is capable of running these tests before
# setting this variable in the project!
- $CI_RUN_QEMU
tags:
# This requires a specific runner, shared runners generally don't work.
- qemu