[jhbuild] CI: Add a job which builds glib on Ubuntu 19.04
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild] CI: Add a job which builds glib on Ubuntu 19.04
- Date: Wed, 4 Sep 2019 17:57:26 +0000 (UTC)
commit 9b100ad09a1f6107fa19593da1d4b51cbcd2bb0d
Author: Christoph Reiter <reiter christoph gmail com>
Date: Mon Sep 2 22:21:16 2019 +0200
CI: Add a job which builds glib on Ubuntu 19.04
This should make sure that the basics work.
.gitlab-ci.yml | 16 ++++++++++++++--
.gitlab-ci/Dockerfile | 8 +++++++-
.gitlab-ci/build-docker.sh | 2 +-
3 files changed, 22 insertions(+), 4 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 51702046..926c73c3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,10 +2,22 @@ stages:
- test
test:
- image: registry.gitlab.gnome.org/gnome/jhbuild/jhbuild:v1
+ image: registry.gitlab.gnome.org/gnome/jhbuild/jhbuild:v2
script:
- mkdir _build && cd _build
- ../autogen.sh
- make
- make install
- - make distcheck
\ No newline at end of file
+ - make distcheck
+
+ubuntu-19.04-glib:
+ image: registry.gitlab.gnome.org/gnome/jhbuild/jhbuild:v2
+ script:
+ - ./autogen.sh
+ - make
+ - make install
+ - export PATH=$HOME/.local/bin:$PATH
+ - sudo apt-file update
+ - jhbuild --no-interact --exit-on-error sysdeps --install --assume-yes glib
+ - sudo apt install -y zlib1g-dev docbook-xml docbook-xsl python3-setuptools python3-pygments python3-dev
+ - jhbuild --no-interact --exit-on-error build glib
\ No newline at end of file
diff --git a/.gitlab-ci/Dockerfile b/.gitlab-ci/Dockerfile
index 17b2bea8..29aa0d6e 100644
--- a/.gitlab-ci/Dockerfile
+++ b/.gitlab-ci/Dockerfile
@@ -1,6 +1,7 @@
FROM ubuntu:disco
RUN apt update && apt install -y \
+ apt-file \
autoconf \
automake \
autopoint \
@@ -11,7 +12,12 @@ RUN apt update && apt install -y \
patch \
pkg-config \
python \
+ sudo \
trang \
yelp-tools
-ENV LANG C.UTF-8
\ No newline at end of file
+RUN useradd -u 1000 -ms /bin/bash user
+RUN echo 'user ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
+USER user
+
+ENV LANG C.UTF-8
diff --git a/.gitlab-ci/build-docker.sh b/.gitlab-ci/build-docker.sh
index 257a859d..9affcab0 100755
--- a/.gitlab-ci/build-docker.sh
+++ b/.gitlab-ci/build-docker.sh
@@ -2,6 +2,6 @@
set -e
-TAG="registry.gitlab.gnome.org/gnome/jhbuild/jhbuild:v1"
+TAG="registry.gitlab.gnome.org/gnome/jhbuild/jhbuild:v2"
sudo docker build --tag "${TAG}" --file "Dockerfile" .
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]