Pushing unreviewed patches to the pixman git repository

Submitted by Adam Jackson on June 7, 2018, 3:36 p.m.

Details

Message ID 375be2a5ac697ac1226221cf27f9291d1be5099d.camel@redhat.com
State New
Headers show
Series "Pushing unreviewed patches to the pixman git repository" ( rev: 1 ) in Pixman

Not browsing as part of any series.

Commit Message

Adam Jackson June 7, 2018, 3:36 p.m.
On Thu, 2018-06-07 at 00:28 +0100, Chris Wilson wrote:

> On a similar topic: now that we have the gitlab instance, how do we go
> about enabling the reftests to be run automatically?

You push, and it happens:

https://gitlab.freedesktop.org/pixman/pixman/-/jobs

The change to enable this was unreviewed; mea maxima culpa. There's no
magic in it, at least:

---

commit 9034d0cc3241c56cbe3bdbc98247a68e3529ee48 (gitlab/ci, tmp, ci)
Author: Adam Jackson <ajax@redhat.com>
Date:   Thu May 31 12:32:18 2018 -0400

    ci: Add .gitlab-ci.yml
    
    Just builds on Fedora 28 for x86_64 at the moment, but it's a start.
    Credit to Daniel Stone for eliminating the nested docker image.
    
    Signed-off-by: Adam Jackson <ajax@redhat.com>


---

D'oh, ought to call ci.sh from the script: section.

If you make your own fork of the repo, it'll automatically have CI
enabled too, so anything you push will get tested. One thing I wanted
to look into was getting enough of a qemu-user and cross-compiler
environment to be able to test on at least emulated non-x86.

- ajax

Patch hide | download patch | download mbox

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..b506ca3
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,9 @@ 
+image: fedora:28
+
+job:
+    script:
+    - dnf -y install dnf-plugins-core
+    - dnf -y groupinstall buildsys-build
+    - dnf -y builddep pixman
+    - ./autogen.sh
+    - make -sj4 check
\ No newline at end of file
diff --git a/contrib/ci.sh b/contrib/ci.sh
new file mode 100755
index 0000000..48b3e77
--- /dev/null
+++ b/contrib/ci.sh
@@ -0,0 +1,6 @@ 
+#!/bin/sh
+
+set -ex
+
+./autogen.sh
+make -sj4 check