[at-spi2-core: 1/7] Install grcov




commit 62a32f566de03b6d1406501cea7a16a1de34dec1
Author: Federico Mena Quintero <federico gnome org>
Date:   Fri Jun 3 17:04:18 2022 -0500

    Install grcov
    
    Also install bzip2 and tar... to install grcov from a binary release
    tarball.
    
    We'll probably end up building it from source, like librsvg does.

 ci/container_builds.yml |  8 +++++---
 ci/install-grcov.sh     | 14 ++++++++++++++
 2 files changed, 19 insertions(+), 3 deletions(-)
---
diff --git a/ci/container_builds.yml b/ci/container_builds.yml
index ac18cd5a..61274d42 100644
--- a/ci/container_builds.yml
+++ b/ci/container_builds.yml
@@ -13,7 +13,7 @@ include:
 variables:
   # When branching change the suffix to avoid conflicts with images
   # from the master branch
-  BASE_TAG: "2022-05-31.0-master"
+  BASE_TAG: "2022-06-03.2-install-grcov"
 
 .container.opensuse@x86_64:
   stage: "container-build"
@@ -22,11 +22,13 @@ variables:
     FDO_DISTRIBUTION_VERSION: "tumbleweed"
     FDO_UPSTREAM_REPO: "gnome/at-spi2-core"
     FDO_DISTRIBUTION_PACKAGES: >-
-      clang clang-tools findutils gcc dbus-1 dbus-1-devel gettext git
+      bzip2 clang clang-tools findutils gcc dbus-1 dbus-1-devel gettext git
       glib2-devel gobject-introspection-devel
       gsettings-desktop-schemas gtk-doc itstool libasan6 libxml2-devel
       libxkbcommon-devel libXi-devel libXtst-devel lcov meson ninja
-      python38 python38-gobject
+      python38 python38-gobject tar wget
+    FDO_DISTRIBUTION_EXEC: >-
+      bash ci/install-grcov.sh v0.8.7 x86_64-unknown-linux-gnu
 
 opensuse-container@x86_64:
   extends:
diff --git a/ci/install-grcov.sh b/ci/install-grcov.sh
new file mode 100644
index 00000000..43db657c
--- /dev/null
+++ b/ci/install-grcov.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+set -eu
+
+GRCOV_VERSION=$1
+GRCOV_ARCH=$2
+
+GRCOV_URL=https://github.com/mozilla/grcov/releases/download/$GRCOV_VERSION/grcov-$GRCOV_ARCH.tar.bz2
+
+wget $GRCOV_URL
+tar xvf grcov-x86_64-unknown-linux-gnu.tar.bz2
+chmod 755 grcov
+
+mv grcov /usr/local/bin


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]