[libsoup] Add a gitlab CI script for continuous testing
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] Add a gitlab CI script for continuous testing
- Date: Wed, 15 Aug 2018 12:38:04 +0000 (UTC)
commit 540cd9cebf2c662769acfac0ce175e10ed7e6fb5
Author: Claudio Saavedra <csaavedra igalia com>
Date: Wed Aug 15 15:26:31 2018 +0300
Add a gitlab CI script for continuous testing
The script will build and run the tests in a Fedora image. Currently
it only runs on non_aws runners, as IPv6 is needed for some tests
and the aws runners don't provide this. See
https://gitlab.gnome.org/Infrastructure/GitLab/issues/313 for
details.
.gitlab-ci.yml | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 00000000..d2710039
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,27 @@
+image: fedora:28
+
+variables:
+ ADDITIONAL_DEPENDENCIES: which gtk-doc libpsl-devel make httpd php php-xmlrpc mod_ssl redhat-rpm-config
+ USER: user
+ BUILDDIR: $CI_PROJECT_DIR/build
+
+build:
+ tags:
+ - non_aws
+ before_script:
+ - dnf update -y --nogpgcheck
+ - dnf install -y 'dnf-command(builddep)'
+ - dnf builddep -y --nogpgcheck libsoup
+ - dnf install -y --nogpgcheck $ADDITIONAL_DEPENDENCIES
+ script:
+ - adduser $USER
+ - su -c 'mkdir -p $BUILDDIR' $USER
+ - cd $BUILDDIR
+ - su -c $CI_PROJECT_DIR/autogen.sh $USER
+ - su -c make $USER
+ - su -c 'make check' $USER
+ artifacts:
+ paths:
+ - $BUILDDIR/config.log
+ - $BUILDDIR/tests/test-suite.log
+ when: on_failure
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]