2 LAVA_DEBIAN_VERSION: testing-slim
3 LAVA_IMAGE_TAG: "lava-2019-09-20-1"
6 - project: 'wayland/ci-templates'
7 ref: 1f7f57c64ff4ebbf7292e3b7a13600518b8cb24c
8 file: '/templates/debian.yml'
10 # When to automatically run the CI
19 - runner_system_failure
21 # Build Docker image with deqp, the rootfs and the build deps for Mesa
24 - .debian@container-ifnot-exists
28 GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
29 DEBIAN_TAG: '${DEBIAN_ARCH}-${LAVA_IMAGE_TAG}'
30 DEBIAN_EXEC: 'DEBIAN_ARCH=${DEBIAN_ARCH}
32 KERNEL_ARCH=${KERNEL_ARCH}
33 VOLT_ARCH=${VOLT_ARCH}
34 DEFCONFIG=${DEFCONFIG}
35 DEVICE_TREES=${DEVICE_TREES}
36 KERNEL_IMAGE_NAME=${KERNEL_IMAGE_NAME}
37 bash .gitlab-ci/lava-debian-install.sh'
38 DEBIAN_VERSION: ${LAVA_DEBIAN_VERSION}
41 extends: .lava-container
44 GCC_ARCH: "arm-linux-gnueabihf"
47 DEFCONFIG: "arch/arm/configs/multi_v7_defconfig"
48 DEVICE_TREES: "arch/arm/boot/dts/rk3288-veyron-jaq.dtb"
49 KERNEL_IMAGE_NAME: "zImage"
52 extends: .lava-container
55 GCC_ARCH: "aarch64-linux-gnu"
58 DEFCONFIG: "arch/arm64/configs/defconfig"
59 DEVICE_TREES: "arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dtb"
60 KERNEL_IMAGE_NAME: "Image"
64 image: $CI_REGISTRY_IMAGE/debian/$LAVA_DEBIAN_VERSION:$DEBIAN_ARCH-$LAVA_IMAGE_TAG
72 CCACHE_COMPILERCHECK: "content"
73 # Use ccache transparently, and print stats before/after
75 - mkdir -p results mesa-build
77 - export PATH="/usr/lib/ccache:$PATH"
78 - export CCACHE_BASEDIR="$PWD"
79 - export CCACHE_DIR="$PWD/ccache"
80 - ccache --max-size=1500M
81 - ccache --zero-stats || true
82 - ccache --show-stats || true
85 - /usr/share/meson/debcrossgen --arch ${DEBIAN_ARCH} -o /tmp/cross_file.txt
87 --cross-file /tmp/cross_file.txt
88 --libdir /artifacts/rootfs/mesa/lib/
89 --buildtype debugoptimized
90 -D gallium-drivers=kmsro,panfrost
92 -D prefix=/artifacts/rootfs/mesa
96 -D platforms=surfaceless
99 -D gallium-vdpau=false
100 -D gallium-xvmc=false
101 -D gallium-omx=disabled
104 -D gallium-nine=false
106 - ninja -C mesa-build -j4
107 - ninja -C mesa-build install
108 - find /artifacts/rootfs/mesa/lib -name \*.so -exec ${GCC_ARCH}-strip {} \;
110 - du -sh /artifacts/rootfs/mesa/*
111 - rm -rf /artifacts/rootfs/mesa/include
114 - cp .gitlab-ci/lava-deqp-runner.sh /artifacts/rootfs/deqp/.
115 - cp .gitlab-ci/deqp-*-fails.txt /artifacts/rootfs/deqp/.
116 - du -sh /artifacts/rootfs/deqp/*
117 - find /artifacts/rootfs/ -type f -printf "%s\t%p\n" | sort -n
118 - pushd /artifacts/rootfs/ ; find -H | cpio -H newc -v -o | gzip -c - > $CI_PROJECT_DIR/results/panfrost-rootfs-${DEBIAN_ARCH}.cpio.gz; popd
121 - cp /artifacts/${KERNEL_IMAGE_NAME} /artifacts/*.dtb $CI_PROJECT_DIR/results/.
125 - .gitlab-ci/generate_lava.py
126 --template .gitlab-ci/lava-deqp.yml.jinja2
127 --arch ${DEBIAN_ARCH}
128 --base-artifacts-url $CI_PROJECT_URL/-/jobs/$CI_JOB_ID/artifacts/raw/results
129 --device-type ${DEVICE_TYPE}
130 --kernel-image-name ${KERNEL_IMAGE_NAME}
131 --gpu-version ${GPU_VERSION}
132 > results/lava-deqp.yml
134 - export CCACHE_DIR="$PWD/ccache"
135 - ccache --show-stats
143 needs: ["lava-container:armhf"]
146 GCC_ARCH: "arm-linux-gnueabihf"
147 DEVICE_TYPE: "rk3288-veyron-jaq"
148 KERNEL_IMAGE_NAME: "zImage"
153 needs: ["lava-container:arm64"]
156 GCC_ARCH: "aarch64-linux-gnu"
157 DEVICE_TYPE: "rk3399-gru-kevin"
158 KERNEL_IMAGE_NAME: "Image"
166 GIT_STRATEGY: none # no need to pull the whole tree for submitting the job
168 - lava_job_id=`lavacli jobs submit $CI_PROJECT_DIR/results/lava-deqp.yml`
170 - lavacli jobs logs $lava_job_id | grep -a -v "{'case':" | tee results/lava-deqp-$lava_job_id.log
171 - lavacli jobs show $lava_job_id
172 - result=`lavacli results $lava_job_id 0_deqp deqp | head -1`
174 - '[[ "$result" == "pass" ]]'
180 panfrost-t760-test:armhf:
181 image: $CI_REGISTRY_IMAGE/debian/$LAVA_DEBIAN_VERSION:armhf-$LAVA_IMAGE_TAG
183 needs: ["lava-build:armhf"]
187 - lava-rk3288-veyron-jaq
189 panfrost-t860-test:arm64:
190 image: $CI_REGISTRY_IMAGE/debian/$LAVA_DEBIAN_VERSION:arm64-$LAVA_IMAGE_TAG
192 needs: ["lava-build:arm64"]
196 - lava-rk3399-gru-kevin