Arkadiusz Hiler | 2649466 | 2018-10-24 12:27:04 +0300 | [diff] [blame] | 1 | image: $CI_REGISTRY/$CI_PROJECT_PATH/igt-fedora:latest |
Arkadiusz Hiler | fa6dbf8 | 2018-09-28 16:05:59 +0300 | [diff] [blame] | 2 | variables: |
| 3 | MESON_OPTIONS: > |
Simon Ser | 0ea68a1 | 2019-07-05 16:42:23 +0300 | [diff] [blame] | 4 | -Dlibdrm_drivers=intel,nouveau,amdgpu |
| 5 | -Doverlay=enabled |
| 6 | -Dchamelium=enabled |
| 7 | -Dvalgrind=enabled |
| 8 | -Dman=enabled |
| 9 | -Dtests=enabled |
| 10 | -Drunner=enabled |
| 11 | -Dlibunwind=enabled |
Daniel Vetter | a260cab | 2018-12-07 15:00:10 +0100 | [diff] [blame] | 12 | LANG: "C.UTF-8" |
Arkadiusz Hiler | fa6dbf8 | 2018-09-28 16:05:59 +0300 | [diff] [blame] | 13 | |
| 14 | stages: |
| 15 | - containers |
| 16 | - build |
| 17 | - test |
| 18 | - deploy |
| 19 | |
Arkadiusz Hiler | 9622253 | 2018-10-24 13:28:08 +0300 | [diff] [blame] | 20 | #################### BUILD ######################### |
| 21 | |
Arkadiusz Hiler | fa6dbf8 | 2018-09-28 16:05:59 +0300 | [diff] [blame] | 22 | build:tests-fedora: |
| 23 | stage: build |
| 24 | script: |
Arkadiusz Hiler | fa6dbf8 | 2018-09-28 16:05:59 +0300 | [diff] [blame] | 25 | - meson $MESON_OPTIONS build |
| 26 | - ninja -C build |
Daniel Vetter | 445c205 | 2018-10-30 13:22:14 +0100 | [diff] [blame] | 27 | - ninja -C build igt-gpu-tools-doc |
Arkadiusz Hiler | fa6dbf8 | 2018-09-28 16:05:59 +0300 | [diff] [blame] | 28 | artifacts: |
| 29 | paths: |
| 30 | - build |
| 31 | |
Daniel Vetter | c2e577b | 2018-10-30 13:22:13 +0100 | [diff] [blame] | 32 | build:tests-fedora-no-libunwind: |
| 33 | stage: build |
| 34 | script: |
| 35 | - dnf remove -y libunwind-devel |
Simon Ser | 0ea68a1 | 2019-07-05 16:42:23 +0300 | [diff] [blame] | 36 | - meson -Dlibunwind=disabled build |
Daniel Vetter | c2e577b | 2018-10-30 13:22:13 +0100 | [diff] [blame] | 37 | - ninja -C build |
| 38 | |
Arkadiusz Hiler | d445be0 | 2018-10-24 14:47:02 +0300 | [diff] [blame] | 39 | # documentation building is different with meson<0.47 |
| 40 | build:tests-fedora-oldest-meson: |
| 41 | stage: build |
| 42 | script: |
| 43 | - dnf remove -y meson |
| 44 | - pip3 install /usr/src/meson-*.tar.gz |
| 45 | - meson $MESON_OPTIONS build |
| 46 | - ninja -C build |
| 47 | - ninja -C build igt-gpu-tools-doc |
| 48 | |
Simon Ser | f052e49 | 2019-04-24 19:15:26 +0300 | [diff] [blame] | 49 | build:tests-fedora-clang: |
| 50 | stage: build |
| 51 | variables: |
| 52 | CC: clang |
| 53 | script: |
| 54 | - meson $MESON_OPTIONS build |
| 55 | - ninja -C build |
| 56 | artifacts: |
| 57 | paths: |
| 58 | - build |
| 59 | |
Arkadiusz Hiler | 9622253 | 2018-10-24 13:28:08 +0300 | [diff] [blame] | 60 | build:tests-debian-meson: |
Arkadiusz Hiler | 2649466 | 2018-10-24 12:27:04 +0300 | [diff] [blame] | 61 | image: $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian:latest |
Arkadiusz Hiler | fa6dbf8 | 2018-09-28 16:05:59 +0300 | [diff] [blame] | 62 | stage: build |
| 63 | script: |
| 64 | - meson $MESON_OPTIONS build |
| 65 | - ninja -C build |
Arkadiusz Hiler | 9622253 | 2018-10-24 13:28:08 +0300 | [diff] [blame] | 66 | - cp build/tests/test-list.txt meson-test-list.txt |
| 67 | artifacts: |
| 68 | paths: |
| 69 | - meson-test-list.txt |
| 70 | |
Petri Latvala | 771cd83 | 2019-06-03 14:59:43 +0300 | [diff] [blame] | 71 | build:tests-debian-minimal: |
| 72 | image: $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-minimal:latest |
| 73 | stage: build |
| 74 | script: |
Simon Ser | 0ea68a1 | 2019-07-05 16:42:23 +0300 | [diff] [blame] | 75 | - meson -Dtests=disabled -Dlibdrm_drivers="" build |
Petri Latvala | 771cd83 | 2019-06-03 14:59:43 +0300 | [diff] [blame] | 76 | - ninja -C build |
| 77 | artifacts: |
| 78 | paths: |
| 79 | - build |
| 80 | |
Tomi Valkeinen | e55d439 | 2019-02-13 15:14:28 +0200 | [diff] [blame] | 81 | build:tests-debian-meson-armhf: |
| 82 | image: $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-armhf:latest |
| 83 | stage: build |
| 84 | script: |
| 85 | - export PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig/ |
| 86 | - meson --cross-file meson-cross-armhf.txt build |
| 87 | - ninja -C build |
| 88 | artifacts: |
| 89 | paths: |
| 90 | - build |
| 91 | |
Daniel Vetter | f882a54 | 2018-10-30 13:22:15 +0100 | [diff] [blame] | 92 | build:tests-debian-meson-arm64: |
| 93 | image: $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-arm64:latest |
| 94 | stage: build |
| 95 | script: |
Daniel Vetter | b55279b | 2018-12-05 09:08:14 +0100 | [diff] [blame] | 96 | - export PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig/ |
| 97 | - meson --cross-file meson-cross-arm64.txt build |
Daniel Vetter | f882a54 | 2018-10-30 13:22:15 +0100 | [diff] [blame] | 98 | - ninja -C build |
| 99 | artifacts: |
| 100 | paths: |
| 101 | - build |
Arkadiusz Hiler | fa6dbf8 | 2018-09-28 16:05:59 +0300 | [diff] [blame] | 102 | |
Guillaume Tucker | 439a9f5 | 2019-06-13 15:01:06 +0100 | [diff] [blame] | 103 | build:tests-debian-meson-mips: |
| 104 | image: $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-mips:latest |
| 105 | stage: build |
| 106 | script: |
| 107 | - export PKG_CONFIG_PATH=/usr/lib/mips-linux-gnu/pkgconfig/ |
| 108 | - meson --cross-file meson-cross-mips.txt build |
| 109 | - ninja -C build |
| 110 | artifacts: |
| 111 | paths: |
| 112 | - build |
| 113 | |
Arkadiusz Hiler | 6fe2266 | 2018-10-24 12:54:41 +0300 | [diff] [blame] | 114 | build:tests-debian-autotools: |
| 115 | image: $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian:latest |
| 116 | stage: build |
| 117 | script: |
| 118 | - ./autogen.sh --enable-{chamelium,audio,intel,amdgpu,nouveau,tests,runner} |
| 119 | - make -j |
Arkadiusz Hiler | 9622253 | 2018-10-24 13:28:08 +0300 | [diff] [blame] | 120 | - cp tests/test-list.txt autotools-test-list.txt |
| 121 | artifacts: |
| 122 | paths: |
| 123 | - autotools-test-list.txt |
Arkadiusz Hiler | 6fe2266 | 2018-10-24 12:54:41 +0300 | [diff] [blame] | 124 | |
Arkadiusz Hiler | 9622253 | 2018-10-24 13:28:08 +0300 | [diff] [blame] | 125 | #################### TEST ########################## |
| 126 | |
| 127 | test:ninja-test: |
| 128 | dependencies: |
| 129 | - build:tests-fedora |
Arkadiusz Hiler | fa6dbf8 | 2018-09-28 16:05:59 +0300 | [diff] [blame] | 130 | stage: test |
Arkadiusz Hiler | 9622253 | 2018-10-24 13:28:08 +0300 | [diff] [blame] | 131 | script: ninja -C build test |
| 132 | |
Simon Ser | f052e49 | 2019-04-24 19:15:26 +0300 | [diff] [blame] | 133 | test:ninja-test-clang: |
| 134 | dependencies: |
| 135 | - build:tests-fedora-clang |
| 136 | variables: |
| 137 | CC: clang |
| 138 | stage: test |
| 139 | script: ninja -C build test |
| 140 | |
Petri Latvala | 771cd83 | 2019-06-03 14:59:43 +0300 | [diff] [blame] | 141 | test:ninja-test-minimal: |
| 142 | image: $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-minimal:latest |
| 143 | dependencies: |
| 144 | - build:tests-debian-minimal |
| 145 | stage: test |
| 146 | script: ninja -C build test |
| 147 | |
Daniel Vetter | f882a54 | 2018-10-30 13:22:15 +0100 | [diff] [blame] | 148 | test:ninja-test-arm64: |
Daniel Vetter | f882a54 | 2018-10-30 13:22:15 +0100 | [diff] [blame] | 149 | image: $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-arm64:latest |
| 150 | dependencies: |
| 151 | - build:tests-debian-meson-arm64 |
| 152 | stage: test |
Daniel Vetter | 285ebfb | 2018-11-29 15:11:43 +0100 | [diff] [blame] | 153 | script: |
Daniel Vetter | b55279b | 2018-12-05 09:08:14 +0100 | [diff] [blame] | 154 | - export PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig/ |
Daniel Vetter | 285ebfb | 2018-11-29 15:11:43 +0100 | [diff] [blame] | 155 | - env > build/envdump.txt |
| 156 | - ninja -C build test |
| 157 | artifacts: |
| 158 | paths: |
| 159 | - build |
| 160 | when: on_failure |
Daniel Vetter | f882a54 | 2018-10-30 13:22:15 +0100 | [diff] [blame] | 161 | |
Arkadiusz Hiler | 327f40b | 2019-02-13 16:24:33 +0200 | [diff] [blame] | 162 | test:ninja-test-armhf: |
| 163 | image: $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-armhf:latest |
| 164 | dependencies: |
| 165 | - build:tests-debian-meson-armhf |
| 166 | stage: test |
| 167 | script: |
| 168 | - export PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig/ |
| 169 | - env > build/envdump.txt |
| 170 | - ninja -C build test |
| 171 | artifacts: |
| 172 | paths: |
| 173 | - build |
| 174 | when: on_failure |
| 175 | |
Guillaume Tucker | 5f6cf70 | 2019-06-27 14:30:58 +0100 | [diff] [blame] | 176 | test:ninja-test-mips: |
| 177 | image: $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-mips:latest |
| 178 | dependencies: |
| 179 | - build:tests-debian-meson-mips |
| 180 | stage: test |
| 181 | script: |
| 182 | - export PKG_CONFIG_PATH=/usr/lib/mips-linux-gnu/pkgconfig/ |
| 183 | - env > build/envdump.txt |
| 184 | - ninja -C build test |
| 185 | artifacts: |
| 186 | paths: |
| 187 | - build |
| 188 | when: on_failure |
| 189 | |
Arkadiusz Hiler | 9622253 | 2018-10-24 13:28:08 +0300 | [diff] [blame] | 190 | test:test-list-diff: |
| 191 | dependencies: |
| 192 | - build:tests-debian-autotools |
| 193 | - build:tests-debian-meson |
| 194 | stage: test |
Tomeu Vizoso | 7e0246a | 2019-05-10 16:34:12 +0200 | [diff] [blame] | 195 | script: diff <(sed "s/ /\n/g" meson-test-list.txt| grep -v 'vc4\|v3d\|panfrost' | sort) <(sed "s/ /\n/g" autotools-test-list.txt | sort) |
Arkadiusz Hiler | 9622253 | 2018-10-24 13:28:08 +0300 | [diff] [blame] | 196 | |
| 197 | ################### DEPLOY ######################### |
Arkadiusz Hiler | fa6dbf8 | 2018-09-28 16:05:59 +0300 | [diff] [blame] | 198 | |
| 199 | pages: |
Arkadiusz Hiler | 5b7402b | 2019-04-30 14:22:33 +0300 | [diff] [blame] | 200 | when: manual |
Arkadiusz Hiler | 9622253 | 2018-10-24 13:28:08 +0300 | [diff] [blame] | 201 | dependencies: |
| 202 | - build:tests-fedora |
Arkadiusz Hiler | fa6dbf8 | 2018-09-28 16:05:59 +0300 | [diff] [blame] | 203 | stage: deploy |
| 204 | script: |
| 205 | - ninja -C build igt-gpu-tools-doc |
| 206 | - cp -r build/docs/reference/igt-gpu-tools/html public |
| 207 | artifacts: |
| 208 | paths: |
| 209 | - public |
| 210 | only: |
| 211 | - master |
| 212 | |
Arkadiusz Hiler | 9622253 | 2018-10-24 13:28:08 +0300 | [diff] [blame] | 213 | ################# CONTAINERS ####################### |
| 214 | |
Arkadiusz Hiler | fa6dbf8 | 2018-09-28 16:05:59 +0300 | [diff] [blame] | 215 | containers:igt-debian: |
| 216 | stage: containers |
Arkadiusz Hiler | fa6dbf8 | 2018-09-28 16:05:59 +0300 | [diff] [blame] | 217 | image: docker:stable |
Arkadiusz Hiler | b517f65 | 2018-10-30 13:19:46 +0200 | [diff] [blame] | 218 | only: |
| 219 | changes: |
Petri Latvala | 771cd83 | 2019-06-03 14:59:43 +0300 | [diff] [blame] | 220 | - Dockerfile.debian-minimal |
Arkadiusz Hiler | b517f65 | 2018-10-30 13:19:46 +0200 | [diff] [blame] | 221 | - Dockerfile.debian |
Daniel Vetter | 29ae092 | 2018-10-31 14:32:23 +0100 | [diff] [blame] | 222 | - .gitlab-ci.yml |
Arkadiusz Hiler | fa6dbf8 | 2018-09-28 16:05:59 +0300 | [diff] [blame] | 223 | services: |
| 224 | - docker:dind |
| 225 | variables: |
| 226 | DOCKER_HOST: tcp://docker:2375 |
| 227 | DOCKER_DRIVER: overlay2 |
| 228 | script: |
| 229 | - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY |
Petri Latvala | 771cd83 | 2019-06-03 14:59:43 +0300 | [diff] [blame] | 230 | - docker build -t $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-minimal -t igt-debian-minimal -f Dockerfile.debian-minimal . |
Arkadiusz Hiler | fa6dbf8 | 2018-09-28 16:05:59 +0300 | [diff] [blame] | 231 | - docker build -t $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian -f Dockerfile.debian . |
Petri Latvala | 771cd83 | 2019-06-03 14:59:43 +0300 | [diff] [blame] | 232 | - docker push $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-minimal |
Arkadiusz Hiler | fa6dbf8 | 2018-09-28 16:05:59 +0300 | [diff] [blame] | 233 | - docker push $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian |
| 234 | |
Tomi Valkeinen | e55d439 | 2019-02-13 15:14:28 +0200 | [diff] [blame] | 235 | containers:igt-debian-armhf: |
| 236 | stage: containers |
| 237 | image: docker:stable |
| 238 | only: |
| 239 | changes: |
| 240 | - Dockerfile.debian-armhf |
| 241 | - .gitlab-ci.yml |
| 242 | services: |
| 243 | - docker:dind |
| 244 | variables: |
| 245 | DOCKER_HOST: tcp://docker:2375 |
| 246 | DOCKER_DRIVER: overlay2 |
| 247 | script: |
| 248 | - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY |
| 249 | - docker build -t $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-armhf -f Dockerfile.debian-armhf . |
| 250 | - docker push $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-armhf |
| 251 | |
Daniel Vetter | f882a54 | 2018-10-30 13:22:15 +0100 | [diff] [blame] | 252 | containers:igt-debian-arm64: |
| 253 | stage: containers |
| 254 | image: docker:stable |
| 255 | only: |
| 256 | changes: |
| 257 | - Dockerfile.debian-arm64 |
Daniel Vetter | 29ae092 | 2018-10-31 14:32:23 +0100 | [diff] [blame] | 258 | - .gitlab-ci.yml |
Daniel Vetter | f882a54 | 2018-10-30 13:22:15 +0100 | [diff] [blame] | 259 | services: |
| 260 | - docker:dind |
| 261 | variables: |
| 262 | DOCKER_HOST: tcp://docker:2375 |
| 263 | DOCKER_DRIVER: overlay2 |
| 264 | script: |
| 265 | - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY |
| 266 | - docker build -t $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-arm64 -f Dockerfile.debian-arm64 . |
| 267 | - docker push $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-arm64 |
| 268 | |
Guillaume Tucker | 439a9f5 | 2019-06-13 15:01:06 +0100 | [diff] [blame] | 269 | containers:igt-debian-mips: |
| 270 | stage: containers |
| 271 | image: docker:stable |
| 272 | only: |
| 273 | changes: |
| 274 | - Dockerfile.debian-mips |
| 275 | - .gitlab-ci.yml |
| 276 | services: |
| 277 | - docker:dind |
| 278 | variables: |
| 279 | DOCKER_HOST: tcp://docker:2375 |
| 280 | DOCKER_DRIVER: overlay2 |
| 281 | script: |
| 282 | - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY |
| 283 | - docker build -t $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-mips -f Dockerfile.debian-mips . |
| 284 | - docker push $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-mips |
| 285 | |
Arkadiusz Hiler | fa6dbf8 | 2018-09-28 16:05:59 +0300 | [diff] [blame] | 286 | containers:igt-fedora: |
| 287 | stage: containers |
Arkadiusz Hiler | fa6dbf8 | 2018-09-28 16:05:59 +0300 | [diff] [blame] | 288 | image: docker:stable |
Arkadiusz Hiler | b517f65 | 2018-10-30 13:19:46 +0200 | [diff] [blame] | 289 | only: |
| 290 | changes: |
| 291 | - Dockerfile.fedora |
Daniel Vetter | 29ae092 | 2018-10-31 14:32:23 +0100 | [diff] [blame] | 292 | - .gitlab-ci.yml |
Arkadiusz Hiler | fa6dbf8 | 2018-09-28 16:05:59 +0300 | [diff] [blame] | 293 | services: |
| 294 | - docker:dind |
| 295 | variables: |
| 296 | DOCKER_HOST: tcp://docker:2375 |
| 297 | DOCKER_DRIVER: overlay2 |
| 298 | script: |
| 299 | - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY |
| 300 | - docker build -t $CI_REGISTRY/$CI_PROJECT_PATH/igt-fedora -f Dockerfile.fedora . |
| 301 | - docker push $CI_REGISTRY/$CI_PROJECT_PATH/igt-fedora |