1variables:
2  FDO_DISTRIBUTION_TAG: "2021-02-04"
3  FDO_DISTRIBUTION_VERSION: buster
4  FDO_UPSTREAM_REPO: "virgl/virglrenderer"
5  TEST_IMAGE: "$CI_REGISTRY_IMAGE/debian/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG"
6
7include:
8  - project: 'freedesktop/ci-templates'
9    ref: 4a73f030d0602042cfa44ed94dc5e744b52f57aa
10    file: '/templates/debian.yml'
11
12stages:
13  - build
14  - sanity test
15  - test
16
17build docker image:
18  stage: build
19  extends: .fdo.container-ifnot-exists@debian
20  stage: build
21  variables:
22    GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
23    FDO_DISTRIBUTION_EXEC: 'bash ci/build-container.sh'
24  only:
25    - branches
26    - tags
27    - merge_requests
28    - schedules
29
30.tests_base:
31  image: $TEST_IMAGE
32  variables:
33    NUM_THREADS: 4
34  script:
35    - ci/run_tests.sh $TEST_SUITE
36    - echo -e "\nThat's all folks\n"
37  only:
38    - branches
39    - tags
40    - merge_requests
41    - schedules
42
43  artifacts:
44    when: always
45    paths:
46      - results/
47
48.make_check_base:
49  stage: sanity test
50  extends: .tests_base
51
52mesa check meson:
53  variables:
54    TEST_SUITE: '--make-check-meson'
55  extends: .make_check_base
56
57make check clang-fuzzer:
58  variables:
59    TEST_SUITE: '--make-check-clang-fuzzer'
60  extends: .make_check_base
61
62make check trace-stderr:
63  variables:
64    TEST_SUITE: '--make-check-trace-stderr'
65  extends: .make_check_base
66
67.tests:
68  stage: test
69  extends: .tests_base
70
71piglit - gl host:
72  variables:
73    TEST_SUITE: '--piglit-gl'
74  extends: .tests
75
76piglit - gles host:
77  variables:
78    TEST_SUITE: '--piglit-gles'
79  extends: .tests
80
81cts gl - gl host:
82  variables:
83    TEST_SUITE: '--deqp-gl-gl-tests'
84  extends: .tests
85
86cts gles2 - gl host:
87  variables:
88    TEST_SUITE: '--deqp-gl-gles2-tests'
89  extends: .tests
90
91cts gles3 - gl host:
92  variables:
93    TEST_SUITE: '--deqp-gl-gles3-tests'
94  extends: .tests
95
96cts gles31 - gl host:
97  variables:
98    TEST_SUITE: '--deqp-gl-gles31-tests'
99  extends: .tests
100
101
102cts gl - gles host:
103  variables:
104    TEST_SUITE: '--deqp-gles-gl-tests'
105  extends: .tests
106
107cts gles2 - gles host:
108  variables:
109    TEST_SUITE: '--deqp-gles-gles2-tests'
110  extends: .tests
111
112cts gles3 - gles host:
113  variables:
114    TEST_SUITE: '--deqp-gles-gles3-tests'
115  extends: .tests
116
117cts gles31 - gles host:
118  variables:
119    TEST_SUITE: '--deqp-gles-gles31-tests'
120  extends: .tests
121