Re: [PATCH wayland] Add .gitlab-ci.yml

2018-06-06 Thread Pekka Paalanen
On Tue,  5 Jun 2018 22:37:39 +0100
Daniel Stone  wrote:

> Signed-off-by: Daniel Stone 
> ---
>  .gitlab-ci.yml | 34 ++
>  1 file changed, 34 insertions(+)
>  create mode 100644 .gitlab-ci.yml

Hi,

Acked-by: Pekka Paalanen 

but do add a commit message explaining what this will give us and how
it works, please.

There is a patch I promised to push this week. Would this have any
interaction with a direct git-push? I.e. would it be nice to have this
landed first and then I see CI at work after I pushed?


Thanks,
pq

> 
> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
> new file mode 100644
> index ..ce23cf3e
> --- /dev/null
> +++ b/.gitlab-ci.yml
> @@ -0,0 +1,34 @@
> +image: debian:stretch
> +
> +stages:
> +  - build
> +
> +before_script:
> +  - echo 'path-exclude=/usr/share/doc/*' > 
> /etc/dpkg/dpkg.cfg.d/99-exclude-cruft
> +  - echo 'path-exclude=/usr/share/man/*' >> 
> /etc/dpkg/dpkg.cfg.d/99-exclude-cruft
> +  - echo '#!/bin/sh' > /usr/sbin/policy-rc.d
> +  - echo 'exit 101' >> /usr/sbin/policy-rc.d
> +  - chmod +x /usr/sbin/policy-rc.d
> +  - apt-get update
> +  - apt-get -y --no-install-recommends install build-essential automake 
> autoconf libtool pkg-config libexpat1-dev libffi-dev libxml2-dev doxygen 
> graphviz xmlto xsltproc docbook-xsl
> +
> +build-native:
> +  stage: build
> +  script:
> +  - export BUILD_ID="wayland-$CI_JOB_NAME_$CI_COMMIT_SHA-$CI_JOB_ID"
> +  - export PREFIX="$(pwd)/prefix-$BUILD_ID"
> +  - export BUILDDIR="$(pwd)/build-$BUILD_ID"
> +  - mkdir "$BUILDDIR" "$PREFIX"
> +  - cd "$BUILDDIR"
> +  - ../autogen.sh --prefix="$PREFIX" --with-icondir=/usr/share/X11/icons
> +  - make -j4
> +  - make check
> +  - make install
> +  - make distcheck
> +  artifacts:
> +name: wayland-$CI_COMMIT_SHA-$CI_JOB_ID
> +when: always
> +paths:
> +- build-*/wayland-*.tar.xz
> +- build-*/*.log
> +- prefix-*



pgpq87xQLRvpu.pgp
Description: OpenPGP digital signature
___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel


[PATCH wayland] Add .gitlab-ci.yml

2018-06-05 Thread Daniel Stone
Signed-off-by: Daniel Stone 
---
 .gitlab-ci.yml | 34 ++
 1 file changed, 34 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index ..ce23cf3e
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,34 @@
+image: debian:stretch
+
+stages:
+  - build
+
+before_script:
+  - echo 'path-exclude=/usr/share/doc/*' > 
/etc/dpkg/dpkg.cfg.d/99-exclude-cruft
+  - echo 'path-exclude=/usr/share/man/*' >> 
/etc/dpkg/dpkg.cfg.d/99-exclude-cruft
+  - echo '#!/bin/sh' > /usr/sbin/policy-rc.d
+  - echo 'exit 101' >> /usr/sbin/policy-rc.d
+  - chmod +x /usr/sbin/policy-rc.d
+  - apt-get update
+  - apt-get -y --no-install-recommends install build-essential automake 
autoconf libtool pkg-config libexpat1-dev libffi-dev libxml2-dev doxygen 
graphviz xmlto xsltproc docbook-xsl
+
+build-native:
+  stage: build
+  script:
+  - export BUILD_ID="wayland-$CI_JOB_NAME_$CI_COMMIT_SHA-$CI_JOB_ID"
+  - export PREFIX="$(pwd)/prefix-$BUILD_ID"
+  - export BUILDDIR="$(pwd)/build-$BUILD_ID"
+  - mkdir "$BUILDDIR" "$PREFIX"
+  - cd "$BUILDDIR"
+  - ../autogen.sh --prefix="$PREFIX" --with-icondir=/usr/share/X11/icons
+  - make -j4
+  - make check
+  - make install
+  - make distcheck
+  artifacts:
+name: wayland-$CI_COMMIT_SHA-$CI_JOB_ID
+when: always
+paths:
+- build-*/wayland-*.tar.xz
+- build-*/*.log
+- prefix-*
-- 
2.17.1

___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel