diff options
| author | Claudio Saavedra <csaavedra@igalia.com> | 2018-08-15 15:26:31 +0300 |
|---|---|---|
| committer | Claudio Saavedra <csaavedra@igalia.com> | 2018-08-15 15:26:31 +0300 |
| commit | 540cd9cebf2c662769acfac0ce175e10ed7e6fb5 (patch) | |
| tree | cc58ab26b77399e106c0638c844c6916c109cee3 | |
| parent | a91d07f608693a744272d60b53d9a1137c1de00e (diff) | |
| download | libsoup-540cd9cebf2c662769acfac0ce175e10ed7e6fb5.tar.gz | |
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.
| -rw-r--r-- | .gitlab-ci.yml | 27 |
1 files changed, 27 insertions, 0 deletions
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 |
