summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2019-05-03 10:58:48 +0200
committerMichel Dänzer <michel@daenzer.net>2019-05-08 16:59:02 +0000
commit68977157703350fb63aa53ddac1c91f3a6736447 (patch)
tree8505693462e8b81621c98ffe3c698cec472799ca /.gitlab-ci
parentcc2b3a99ccf035a084d768e5c5ffa81478d685c1 (diff)
gitlab-ci: Build clover against all supported versions of LLVM
And consolidate it all into a single job. It doesn't take much longer than a single version, thanks to ccache. Overall, this single job might be faster or at least use fewer CPU cycles than the two jobs before, while covering thrice as many versions of LLVM. v2: * Move "rm -rf _build" to meson-build.sh. * Set GALLIUM_DRIVERS the same way both times in the meson-clover job, for symmetry. Reviewed-by: Eric Engestrom <eric.engestrom@intel.com> # v1
Diffstat (limited to '.gitlab-ci')
-rw-r--r--.gitlab-ci/debian-install.sh10
-rwxr-xr-x[-rw-r--r--].gitlab-ci/meson-build.sh2
2 files changed, 10 insertions, 2 deletions
diff --git a/.gitlab-ci/debian-install.sh b/.gitlab-ci/debian-install.sh
index 3b8a1c0c5d5..98399c1a942 100644
--- a/.gitlab-ci/debian-install.sh
+++ b/.gitlab-ci/debian-install.sh
@@ -26,12 +26,18 @@ apt-get install -y -t stretch-backports \
llvm-3.4-dev \
llvm-3.9-dev \
libclang-3.9-dev \
+ llvm-4.0-dev \
+ libclang-4.0-dev \
llvm-5.0-dev \
+ libclang-5.0-dev \
llvm-6.0-dev \
+ libclang-6.0-dev \
llvm-7-dev \
+ libclang-7-dev \
+ llvm-8-dev \
+ libclang-8-dev \
g++ \
- clang-8 \
- libclang-7-dev
+ clang-8
# Install remaining packages from Debian buster to get newer versions
add-apt-repository "deb https://deb.debian.org/debian/ buster main"
diff --git a/.gitlab-ci/meson-build.sh b/.gitlab-ci/meson-build.sh
index ac41eb872b9..e6f0b800468 100644..100755
--- a/.gitlab-ci/meson-build.sh
+++ b/.gitlab-ci/meson-build.sh
@@ -10,9 +10,11 @@ if test -n "$LLVM_VERSION"; then
echo -e "[binaries]\nllvm-config = '`which $LLVM_CONFIG`'" > native.file
$LLVM_CONFIG --version
else
+ rm -f native.file
touch native.file
fi
+rm -rf _build
meson _build --native-file=native.file \
-D buildtype=debug \
-D build-tests=true \