Skip to contentSkip to conversation

add gitlab-ci builds of libdrm

PATCH In review Eric Engestrom 3 participants 9 messages Aug 31, 2018 – Sep 3, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add gitlab-ci builds of libdrm

It currently does 4 builds: 2 using Meson and 2 using Autotools, 2 using the latest dependencies on ArchLinux and 2 using very old dependencies on Debian (including manually building libpciaccess to have the oldest version supported, to make sure it keeps being supported).

All the build options are turned on for both Meson and Autotools.

---
See it in action on my fork:
https://gitlab.freedesktop.org/eric/libdrm/pipelines/3885

---
 .gitlab-ci.yml | 173 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 173 insertions(+)
 create mode 100644 .gitlab-ci.yml
.gitlab-ci.yml new file +173 -0
new file mode 100644
index 00000000000000000000..a0f3ecb9d7f7f95443a7
@@ -0,0 +1,173 @@
+latest-meson:
+  stage: build
+  image: base/archlinux:latest
+  before_script:
+    - pacman -Syu --noconfirm --needed
+        base-devel
+        meson
+        libpciaccess
+        libxslt docbook-xsl
+        valgrind
+        libatomic_ops
+        cairo cunit
+  script:
+    - meson _build
+        -D amdgpu=true
+        -D cairo-tests=true
+        -D etnaviv=true
+        -D exynos=true
+        -D freedreno=true
+        -D freedreno-kgsl=true
+        -D intel=true
+        -D libkms=true
+        -D man-pages=true
+        -D nouveau=true
+        -D omap=true
+        -D radeon=true
+        -D tegra=true
+        -D udev=true
+        -D valgrind=true
+        -D vc4=true
+        -D vmwgfx=true
+    - ninja -C _build
+    - ninja -C _build test
+
+latest-autotools:
+  stage: build
+  image: base/archlinux:latest
+  before_script:
+    - pacman -Syu --noconfirm --needed
+        base-devel
+        libpciaccess
+        libxslt docbook-xsl
+        valgrind
+        libatomic_ops
+        cairo cunit
+        xorg-util-macros
+        git # autogen.sh depends on git
+  script:
+    - mkdir _build
+    - cd _build
+    - ../autogen.sh
+        --enable-udev
+        --enable-libkms
+        --enable-intel
+        --enable-radeon
+        --enable-admgpu
+        --enable-nouveau
+        --enable-vmwfgx
+        --enable-omap-experimental-api
+        --enable-exynos-experimental-api
+        --enable-freedreno
+        --enable-freedreno-kgsl
+        --enable-tegra-experimental-api
+        --enable-vc4
+        --enable-etnaviv-experimental-api
+    - make
+    - make check
+
+oldest-meson:
+  stage: build
+  image: debian:stable
+  before_script:
+    - printf > /etc/dpkg/dpkg.cfg.d/99-exclude-cruft "%s\n"
+        'path-exclude=/usr/share/doc/*'
+        'path-exclude=/usr/share/man/*'
+    - printf > /usr/sbin/policy-rc.d "%s\n"
+        '#!/bin/sh'
+        'exit 101'
+    - chmod +x /usr/sbin/policy-rc.d
+    - apt-get update
+    - apt-get -y --no-install-recommends install
+        build-essential
+        pkg-config
+        xsltproc
+        libxslt1-dev docbook-xsl
+        valgrind
+        libatomic-ops-dev
+        libcairo2-dev libcunit1-dev
+        ninja-build
+        python3 python3-pip
+        wget
+    - LIBPCIACCESS_VERSION=libpciaccess-0.10 &&
+      wget --no-check-certificate https://xorg.freedesktop.org/releases/individual/lib/$LIBPCIACCESS_VERSION.tar.bz2 &&
+      tar -jxvf $LIBPCIACCESS_VERSION.tar.bz2 &&
+      (cd $LIBPCIACCESS_VERSION && ./configure --prefix=$HOME/prefix && make install)
+    - pip3 install wheel setuptools
+    - pip3 install meson==0.43
+  script:
+    - export PKG_CONFIG_PATH=$HOME/prefix/lib/pkgconfig:$HOME/prefix/share/pkgconfig
+    - export LD_LIBRARY_PATH="$HOME/prefix/lib:$LD_LIBRARY_PATH"
+    - meson _build
+        -D amdgpu=true
+        -D cairo-tests=true
+        -D etnaviv=true
+        -D exynos=true
+        -D freedreno=true
+        -D freedreno-kgsl=true
+        -D intel=true
+        -D libkms=true
+        -D man-pages=true
+        -D nouveau=true
+        -D omap=true
+        -D radeon=true
+        -D tegra=true
+        -D udev=true
+        -D valgrind=true
+        -D vc4=true
+        -D vmwgfx=true
+    - ninja -C _build
+    - ninja -C _build test
+
+oldest-autotools:
+  stage: build
+  image: debian:stable
+  before_script:
+    - printf > /etc/dpkg/dpkg.cfg.d/99-exclude-cruft "%s\n"
+        'path-exclude=/usr/share/doc/*'
+        'path-exclude=/usr/share/man/*'
+    - printf > /usr/sbin/policy-rc.d "%s\n"
+        '#!/bin/sh'
+        'exit 101'
+    - chmod +x /usr/sbin/policy-rc.d
+    - apt-get update
+    - apt-get -y --no-install-recommends install
+        build-essential
+        automake
+        autoconf
+        libtool
+        pkg-config
+        xsltproc
+        libxslt1-dev docbook-xsl
+        valgrind
+        libatomic-ops-dev
+        libcairo2-dev libcunit1-dev
+        wget
+        xutils-dev
+        git # autogen.sh depends on git
+    - LIBPCIACCESS_VERSION=libpciaccess-0.10 &&
+      wget --no-check-certificate https://xorg.freedesktop.org/releases/individual/lib/$LIBPCIACCESS_VERSION.tar.bz2 &&
+      tar -jxvf $LIBPCIACCESS_VERSION.tar.bz2 &&
+      (cd $LIBPCIACCESS_VERSION && ./configure --prefix=$HOME/prefix && make install)
+  script:
+    - export PKG_CONFIG_PATH=$HOME/prefix/lib/pkgconfig:$HOME/prefix/share/pkgconfig
+    - export LD_LIBRARY_PATH="$HOME/prefix/lib:$LD_LIBRARY_PATH"
+    - mkdir _build
+    - cd _build
+    - ../autogen.sh
+        --enable-udev
+        --enable-libkms
+        --enable-intel
+        --enable-radeon
+        --enable-admgpu
+        --enable-nouveau
+        --enable-vmwfgx
+        --enable-omap-experimental-api
+        --enable-exynos-experimental-api
+        --enable-freedreno
+        --enable-freedreno-kgsl
+        --enable-tegra-experimental-api
+        --enable-vc4
+        --enable-etnaviv-experimental-api
+    - make
+    - make check
Signature · 7 lines
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

Hi Eric,

Review

Quoted 2 lines · Eric Engestrom
(quoted diff) +2 -0
+    - LIBPCIACCESS_VERSION=libpciaccess-0.10 &&
+      wget --no-check-certificate https://xorg.freedesktop.org/releases/individual/lib/$LIBPCIACCESS_VERSION.tar.bz2 &&

Why are you using --no-check-certificate?!

Cheers,
Daniel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
Quoted 7 lines · Daniel Stone

Hi Eric,

Review

Quoted 2 lines · Eric Engestrom
(quoted diff) +2 -0
+    - LIBPCIACCESS_VERSION=libpciaccess-0.10 &&
+      wget --no-check-certificate https://xorg.freedesktop.org/releases/individual/lib/$LIBPCIACCESS_VERSION.tar.bz2 &&

Why are you using --no-check-certificate?!

Right, forgot to add a comment for this, sorry.

fd.o uses LetsEncrypt, which is not present in the ca-certificate on debian:stable. I had to choose between ignoring the certificate error or use a custom CA, which just didn't seem worth it.

Quoted 3 lines

Cheers,
Daniel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
Quoted 7 lines · Eric Engestrom
Quoted 6 lines · Daniel Stone

Hi Eric,

Quoted 2 lines · Eric Engestrom
(quoted diff) +2 -0
+    - LIBPCIACCESS_VERSION=libpciaccess-0.10 &&
+      wget --no-check-certificate https://xorg.freedesktop.org/releases/individual/lib/$LIBPCIACCESS_VERSION.tar.bz2 &&
Quoted 7 lines
Quoted 1 line

Why are you using --no-check-certificate?!

Right, forgot to add a comment for this, sorry.

fd.o uses LetsEncrypt, which is not present in the ca-certificate on debian:stable. I had to choose between ignoring the certificate error or use a custom CA, which just didn't seem worth it.

Slightly more modern distro then? On the kernel side we're going with fedora:latest, that also tends to have all the latest bells&whistles we need for compiling some of our things.
-Daniel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#4 lore raw
Quoted 12 lines · Daniel Vetter
Quoted 11 lines · Eric Engestrom
Quoted 7 lines · Daniel Stone

Hi Eric,

Review

Quoted 2 lines · Eric Engestrom
(quoted diff) +2 -0
+    - LIBPCIACCESS_VERSION=libpciaccess-0.10 &&
+      wget --no-check-certificate https://xorg.freedesktop.org/releases/individual/lib/$LIBPCIACCESS_VERSION.tar.bz2 &&

Why are you using --no-check-certificate?!

Right, forgot to add a comment for this, sorry.

Quoted 7 lines
Quoted 3 lines

fd.o uses LetsEncrypt, which is not present in the ca-certificate on debian:stable. I had to choose between ignoring the certificate error or use a custom CA, which just didn't seem worth it.

Slightly more modern distro then? On the kernel side we're going with fedora:latest, that also tends to have all the latest bells&whistles we need for compiling some of our things.

I have two distros in this pipeline: arch to test the up-to-date stuff and debian to test the ancient stuff.
Should I drop debian and just keep arch to only have the up-to-date test?

FYI, I'm planning on adding freebsd too (later this week hopefully).

Quoted 9 lines

-Daniel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
Quoted 17 lines · Eric Engestrom
Quoted 16 lines · Daniel Vetter
Quoted 14 lines · Eric Engestrom
Quoted 7 lines · Daniel Stone

Hi Eric,

Review

Quoted 2 lines · Eric Engestrom
(quoted diff) +2 -0
+    - LIBPCIACCESS_VERSION=libpciaccess-0.10 &&
+      wget --no-check-certificate https://xorg.freedesktop.org/releases/individual/lib/$LIBPCIACCESS_VERSION.tar.bz2 &&

Why are you using --no-check-certificate?!

Right, forgot to add a comment for this, sorry.

fd.o uses LetsEncrypt, which is not present in the ca-certificate on debian:stable. I had to choose between ignoring the certificate error or use a custom CA, which just didn't seem worth it.

Quoted 7 lines
Quoted 3 lines

Slightly more modern distro then? On the kernel side we're going with fedora:latest, that also tends to have all the latest bells&whistles we need for compiling some of our things.

I have two distros in this pipeline: arch to test the up-to-date stuff and debian to test the ancient stuff.
Should I drop debian and just keep arch to only have the up-to-date test?

Ah, I missed that. Makes sense (if you add a comment to explain this).

Quoted 1 line

FYI, I'm planning on adding freebsd too (later this week hopefully).

I think cross-compiling to arm/arm64, and making sure x86 (the 32bit stuff) keeps working would be great too. If you go to the trouble of testing all these things :-)
-Daniel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#6 lore raw
Quoted 26 lines · Daniel Vetter
Quoted 17 lines · Eric Engestrom
Quoted 16 lines · Daniel Vetter
Quoted 14 lines · Eric Engestrom
Quoted 7 lines · Daniel Stone

Hi Eric,

Review

Quoted 2 lines · Eric Engestrom
(quoted diff) +2 -0
+    - LIBPCIACCESS_VERSION=libpciaccess-0.10 &&
+      wget --no-check-certificate https://xorg.freedesktop.org/releases/individual/lib/$LIBPCIACCESS_VERSION.tar.bz2 &&

Why are you using --no-check-certificate?!

Right, forgot to add a comment for this, sorry.

fd.o uses LetsEncrypt, which is not present in the ca-certificate on debian:stable. I had to choose between ignoring the certificate error or use a custom CA, which just didn't seem worth it.

Quoted 7 lines
Quoted 3 lines

Slightly more modern distro then? On the kernel side we're going with fedora:latest, that also tends to have all the latest bells&whistles we need for compiling some of our things.

I have two distros in this pipeline: arch to test the up-to-date stuff and debian to test the ancient stuff.
Should I drop debian and just keep arch to only have the up-to-date test?

Quoted 7 lines

Ah, I missed that. Makes sense (if you add a comment to explain this).

Quoted 1 line

FYI, I'm planning on adding freebsd too (later this week hopefully).

I think cross-compiling to arm/arm64, and making sure x86 (the 32bit stuff) keeps working would be great too. If you go to the trouble of testing all these things :-)

Good points, I forgot about testing archs; I'll add those too, thanks :)

Quoted 9 lines

-Daniel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reviewed-by on v1 1/1
#7 lore raw
In reply to Eric Engestrom
Quoted 11 lines · Eric Engestrom

It currently does 4 builds: 2 using Meson and 2 using Autotools, 2 using the latest dependencies on ArchLinux and 2 using very old dependencies on Debian (including manually building libpciaccess to have the oldest version supported, to make sure it keeps being supported).

All the build options are turned on for both Meson and Autotools.

---
See it in action on my fork:
https://gitlab.freedesktop.org/eric/libdrm/pipelines/3885

With the --no-check-certificate things explained:

Quoted 192 lines
---
 .gitlab-ci.yml | 173 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 173 insertions(+)
 create mode 100644 .gitlab-ci.yml
.gitlab-ci.yml new file +173 -0
new file mode 100644
index 00000000000000000000..a0f3ecb9d7f7f95443a7
@@ -0,0 +1,173 @@
+latest-meson:
+  stage: build
+  image: base/archlinux:latest
+  before_script:
+    - pacman -Syu --noconfirm --needed
+        base-devel
+        meson
+        libpciaccess
+        libxslt docbook-xsl
+        valgrind
+        libatomic_ops
+        cairo cunit
+  script:
+    - meson _build
+        -D amdgpu=true
+        -D cairo-tests=true
+        -D etnaviv=true
+        -D exynos=true
+        -D freedreno=true
+        -D freedreno-kgsl=true
+        -D intel=true
+        -D libkms=true
+        -D man-pages=true
+        -D nouveau=true
+        -D omap=true
+        -D radeon=true
+        -D tegra=true
+        -D udev=true
+        -D valgrind=true
+        -D vc4=true
+        -D vmwgfx=true
+    - ninja -C _build
+    - ninja -C _build test
+
+latest-autotools:
+  stage: build
+  image: base/archlinux:latest
+  before_script:
+    - pacman -Syu --noconfirm --needed
+        base-devel
+        libpciaccess
+        libxslt docbook-xsl
+        valgrind
+        libatomic_ops
+        cairo cunit
+        xorg-util-macros
+        git # autogen.sh depends on git
+  script:
+    - mkdir _build
+    - cd _build
+    - ../autogen.sh
+        --enable-udev
+        --enable-libkms
+        --enable-intel
+        --enable-radeon
+        --enable-admgpu
+        --enable-nouveau
+        --enable-vmwfgx
+        --enable-omap-experimental-api
+        --enable-exynos-experimental-api
+        --enable-freedreno
+        --enable-freedreno-kgsl
+        --enable-tegra-experimental-api
+        --enable-vc4
+        --enable-etnaviv-experimental-api
+    - make
+    - make check
+
+oldest-meson:
+  stage: build
+  image: debian:stable
+  before_script:
+    - printf > /etc/dpkg/dpkg.cfg.d/99-exclude-cruft "%s\n"
+        'path-exclude=/usr/share/doc/*'
+        'path-exclude=/usr/share/man/*'
+    - printf > /usr/sbin/policy-rc.d "%s\n"
+        '#!/bin/sh'
+        'exit 101'
+    - chmod +x /usr/sbin/policy-rc.d
+    - apt-get update
+    - apt-get -y --no-install-recommends install
+        build-essential
+        pkg-config
+        xsltproc
+        libxslt1-dev docbook-xsl
+        valgrind
+        libatomic-ops-dev
+        libcairo2-dev libcunit1-dev
+        ninja-build
+        python3 python3-pip
+        wget
+    - LIBPCIACCESS_VERSION=libpciaccess-0.10 &&
+      wget --no-check-certificate https://xorg.freedesktop.org/releases/individual/lib/$LIBPCIACCESS_VERSION.tar.bz2 &&
+      tar -jxvf $LIBPCIACCESS_VERSION.tar.bz2 &&
+      (cd $LIBPCIACCESS_VERSION && ./configure --prefix=$HOME/prefix && make install)
+    - pip3 install wheel setuptools
+    - pip3 install meson==0.43
+  script:
+    - export PKG_CONFIG_PATH=$HOME/prefix/lib/pkgconfig:$HOME/prefix/share/pkgconfig
+    - export LD_LIBRARY_PATH="$HOME/prefix/lib:$LD_LIBRARY_PATH"
+    - meson _build
+        -D amdgpu=true
+        -D cairo-tests=true
+        -D etnaviv=true
+        -D exynos=true
+        -D freedreno=true
+        -D freedreno-kgsl=true
+        -D intel=true
+        -D libkms=true
+        -D man-pages=true
+        -D nouveau=true
+        -D omap=true
+        -D radeon=true
+        -D tegra=true
+        -D udev=true
+        -D valgrind=true
+        -D vc4=true
+        -D vmwgfx=true
+    - ninja -C _build
+    - ninja -C _build test
+
+oldest-autotools:
+  stage: build
+  image: debian:stable
+  before_script:
+    - printf > /etc/dpkg/dpkg.cfg.d/99-exclude-cruft "%s\n"
+        'path-exclude=/usr/share/doc/*'
+        'path-exclude=/usr/share/man/*'
+    - printf > /usr/sbin/policy-rc.d "%s\n"
+        '#!/bin/sh'
+        'exit 101'
+    - chmod +x /usr/sbin/policy-rc.d
+    - apt-get update
+    - apt-get -y --no-install-recommends install
+        build-essential
+        automake
+        autoconf
+        libtool
+        pkg-config
+        xsltproc
+        libxslt1-dev docbook-xsl
+        valgrind
+        libatomic-ops-dev
+        libcairo2-dev libcunit1-dev
+        wget
+        xutils-dev
+        git # autogen.sh depends on git
+    - LIBPCIACCESS_VERSION=libpciaccess-0.10 &&
+      wget --no-check-certificate https://xorg.freedesktop.org/releases/individual/lib/$LIBPCIACCESS_VERSION.tar.bz2 &&
+      tar -jxvf $LIBPCIACCESS_VERSION.tar.bz2 &&
+      (cd $LIBPCIACCESS_VERSION && ./configure --prefix=$HOME/prefix && make install)
+  script:
+    - export PKG_CONFIG_PATH=$HOME/prefix/lib/pkgconfig:$HOME/prefix/share/pkgconfig
+    - export LD_LIBRARY_PATH="$HOME/prefix/lib:$LD_LIBRARY_PATH"
+    - mkdir _build
+    - cd _build
+    - ../autogen.sh
+        --enable-udev
+        --enable-libkms
+        --enable-intel
+        --enable-radeon
+        --enable-admgpu
+        --enable-nouveau
+        --enable-vmwfgx
+        --enable-omap-experimental-api
+        --enable-exynos-experimental-api
+        --enable-freedreno
+        --enable-freedreno-kgsl
+        --enable-tegra-experimental-api
+        --enable-vc4
+        --enable-etnaviv-experimental-api
+    - make
+    - make check
Signature · 7 lines
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by
#8 lore raw

Hi,

Quoted 8 lines · Daniel Vetter
Quoted 7 lines · Eric Engestrom

It currently does 4 builds: 2 using Meson and 2 using Autotools, 2 using the latest dependencies on ArchLinux and 2 using very old dependencies on Debian (including manually building libpciaccess to have the oldest version supported, to make sure it keeps being supported).

All the build options are turned on for both Meson and Autotools.

Quoted 8 lines
Quoted 4 lines

---
See it in action on my fork:
https://gitlab.freedesktop.org/eric/libdrm/pipelines/3885

With the --no-check-certificate things explained:

Indeed, and also:

Thanks for doing this!

Cheers,
Daniel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel