1 # This is the tag of the docker image used for the build jobs. If the
2 # image doesn't exist yet, the containers stage generates it.
4 # In order to generate a new image, one should generally change the tag.
5 # While removing the image from the registry would also work, that's not
6 # recommended except for ephemeral images during development: Replacing
7 # an image after a significant amount of time might pull in newer
8 # versions of gcc/clang or other packages, which might break the build
9 # with older commits using the same tag.
11 FDO_UPSTREAM_REPO: mesa/piglit
12 FDO_DISTRIBUTION_TAG: "2021-04-06-templates"
13 FDO_DISTRIBUTION_VERSION: buster-slim
14 WINDOWS_TAG: "2020-08-18"
15 WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/windows/x64_build:$WINDOWS_TAG"
16 WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$UPSTREAM_REPO/windows/x64_build:$WINDOWS_TAG"
20 - project: 'freedesktop/ci-templates'
21 ref: 290b79e0e78eab67a83766f4e9691be554fc4afd
22 file: '/templates/debian.yml'
30 # When & how to run the CI
35 - runner_system_failure
36 # Cancel CI run if a newer commit is pushed to the same branch
45 - .fdo.container-build@debian
47 GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
48 FDO_DISTRIBUTION_EXEC: 'bash .gitlab-ci/debian-install.sh'
53 - .fdo.distribution-image@debian
61 GIT_STRATEGY: fetch # we do actually need the full repository though
68 - .\.gitlab-ci\windows\container.ps1 $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $WINDOWS_IMAGE $WINDOWS_UPSTREAM_IMAGE
82 # Use ccache transparently, and print stats before/after
85 CC: /usr/lib/ccache/gcc
86 CXX: /usr/lib/ccache/g++
87 CCACHE_COMPILERCHECK: content
88 CCACHE_DIR: /cache/piglit/ccache
90 - export CCACHE_BASEDIR="$PWD"
101 - .gitlab-ci/build-debian.sh
110 - TARGET: [mingw32, mingw64]
112 - .gitlab-ci/build-mingw.sh ${TARGET}
115 - build/*/piglit-*.7z
122 - cmd.exe /C "C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=amd64 &&
123 cmake . -D CMAKE_BUILD_TYPE=Debug
124 -D PIGLIT_BUILD_CL_TESTS=off
125 -D GLUT_INCLUDE_DIR=C:\freeglut\include
126 -D GLUT_glut_LIBRARY_RELEASE=C:\freeglut\lib\x64\freeglut.lib
127 -D GLEXT_INCLUDE_DIR=C:\glext\
128 -D PIGLIT_BUILD_DMA_BUF_TESTS=off
129 -D PIGLIT_BUILD_GLES1_TESTS=off
130 -D PIGLIT_BUILD_GLES2_TESTS=off
131 -D PIGLIT_BUILD_GLX_TESTS=off
132 -D PIGLIT_BUILD_GL_TESTS=on
133 -D PIGLIT_BUILD_WGL_TESTS=on
142 - pytest-3 unittests/framework
145 image: python:${PY_MAJVER}.${PY_MINVER}
152 - tox -e "py${PY_MAJVER}${PY_MINVER}-{generator,noaccel,accel-nix,streams,functional}"
163 - apk --no-cache add py3-pip python3
165 - pip install Flask-Sphinx-Themes
168 - mv _build/html/ ../public/