summaryrefslogtreecommitdiffstats
path: root/.gitlab-ci/test-source-dep.yml
diff options
context:
space:
mode:
authorPierre-Eric Pelloux-Prayer <[email protected]>2019-10-30 20:39:08 +0100
committerPierre-Eric Pelloux-Prayer <[email protected]>2020-03-09 16:31:55 +0100
commit2a9d6fdd8c5a94b574e241f9cad5662cbaef54b2 (patch)
tree66a1fb8a77d5a67b947d15dbea6c841facfa8f46 /.gitlab-ci/test-source-dep.yml
parent61fb17e8d74b9b38f54780483157682fe9d3e312 (diff)
gitlab-ci: rules:changes to test on tested drivers changes
For now tests only use these drivers: * llvmpipe * softpipe * freedreno * lima * etnaviv * panfrost So using rules:changes gitlab feature to run the tests when the changes made are potentially affecting these drivers. A few notes: * the following code: .piglit-test: extends: - .test-gl - .llvmpipe-rules makes gitlab replace .test-gl "rules:changes" values by the one from ".llvmpipe-rules". * rules:changes always matches for non-MR new branches so jobs will always be created (and they'll be run if their dependencies are run). For pushes to existing branches the files changed by the push are used to match the rules:changes path. * the same gitlab feature could be used for some build jobs Acked-by: Eric Engestrom <[email protected]> Reviewed-by: Michel Dänzer <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2569> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2569>
Diffstat (limited to '.gitlab-ci/test-source-dep.yml')
-rw-r--r--.gitlab-ci/test-source-dep.yml118
1 files changed, 118 insertions, 0 deletions
diff --git a/.gitlab-ci/test-source-dep.yml b/.gitlab-ci/test-source-dep.yml
new file mode 100644
index 00000000000..a243ea99b6f
--- /dev/null
+++ b/.gitlab-ci/test-source-dep.yml
@@ -0,0 +1,118 @@
+# This file list source dependencies to avoid creating/running jobs
+# those outcome cannot be changed by the modifications from a branch.
+
+# Mesa core source file dependencies
+# ----------------------------------
+.mesa-rules:
+ rules:
+ - changes: &mesa_core_file_list
+ - .gitlab-ci.yml
+ - .gitlab-ci/**/*
+ - include/**/*
+ - meson.build
+ - SConstruct
+ - src/*
+ - src/compiler/**/*
+ - src/drm-shim/**/*
+ - src/egl/**/*
+ - src/gbm/**/*
+ - src/glx/**/*
+ - src/gtest/**/*
+ - src/hgl/**/*
+ - src/include/**/*
+ - src/loader/**/*
+ - src/mapi/**/*
+ - src/mesa/**/*
+ - src/util/**/*
+
+# Gallium core source file dependencies
+# -------------------------------------
+.gallium-rules:
+ rules:
+ - changes: &gallium_core_file_list
+ - src/gallium/*
+ - src/gallium/auxiliary/**/*
+ - src/gallium/drivers/*
+ - src/gallium/include/**/*
+ - src/gallium/state_trackers/**/*
+ - src/gallium/targets/**/*
+ - src/gallium/tests/**/*
+ - src/gallium/winsys/*
+
+.softpipe-rules:
+ stage: softpipe
+ rules:
+ - changes:
+ *mesa_core_file_list
+ when: on_success
+ - changes:
+ *gallium_core_file_list
+ when: on_success
+ - changes:
+ - src/gallium/drivers/softpipe/**/*
+ - src/gallium/winsys/sw/**/*
+ when: on_success
+ - when: never
+
+.llvmpipe-rules:
+ stage: llvmpipe
+ rules:
+ - changes:
+ *mesa_core_file_list
+ when: on_success
+ - changes:
+ *gallium_core_file_list
+ when: on_success
+ - changes:
+ - src/gallium/drivers/llvmpipe/**/*
+ - src/gallium/winsys/sw/**/*
+ when: on_success
+ - when: never
+
+.freedreno-rules:
+ stage: freedreno
+ rules:
+ - changes:
+ *mesa_core_file_list
+ when: on_success
+ - changes:
+ *gallium_core_file_list
+ when: on_success
+ - changes:
+ - src/freedreno/**/*
+ - src/gallium/drivers/freedreno/**/*
+ - src/gallium/winsys/freedreno/**/*
+ when: on_success
+ - when: never
+
+.panfrost-rules:
+ stage: panfrost
+ rules:
+ - changes:
+ *mesa_core_file_list
+ when: on_success
+ - changes:
+ *gallium_core_file_list
+ when: on_success
+ - changes:
+ - src/gallium/drivers/panfrost/**/*
+ - src/gallium/winsys/panfrost/**/*
+ - src/panfrost/**/*
+ when: on_success
+ - when: never
+
+.lima-rules:
+ stage: misc-tests
+ rules:
+ - changes:
+ *mesa_core_file_list
+ when: on_success
+ - changes:
+ *gallium_core_file_list
+ when: on_success
+ - changes:
+ - src/gallium/drivers/lima/**/*
+ - src/gallium/winsys/lima/**/*
+ - src/lima/**/*
+ when: on_success
+ - when: never