Run only jobs needed for testing on LAVA devices if a branch starts with
lava-ci-.
This allows developers to have faster test cycles as these pipelines
take only a bit above 8 minutes. Also has the advantage of conserving
resources.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
file: '/templates/debian.yml'
# When to automatically run the CI
-.ci-run-policy:
+.lava-ci-run-policy:
only:
- branches@mesa/mesa
- merge_requests
- - /^ci([-/].*)?$/
+ - /^lava-ci([-/].*)?$/
retry:
max: 2
when:
extends:
- .debian@container-ifnot-exists
- .container
+ - .lava-ci-run-policy
variables:
DEBIAN_TAG: '${DEBIAN_ARCH}-${LAVA_IMAGE_TAG}'
DEBIAN_EXEC: 'DEBIAN_ARCH=${DEBIAN_ARCH}
image: $CI_REGISTRY_IMAGE/debian/$LAVA_DEBIAN_VERSION:$DEBIAN_ARCH-$LAVA_IMAGE_TAG
extends:
- .build-linux
+ - .lava-ci-run-policy
script:
# Build Mesa
- mkdir -p results mesa-build
.lava-test:
extends:
- .test
+ - .lava-ci-run-policy
script:
- lava_job_id=`lavacli jobs submit $CI_PROJECT_DIR/results/lava-deqp-$DEVICE_TYPE.yml`
- echo $lava_job_id