From ad5142a1b37147b8626b7a633cad96ecef1f3a2d Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 15 Jun 2018 15:41:01 +1000 Subject: [PATCH] Add GitLab CI A simple version of it, we just pull down a few popular distros, build on them and make sure distcheck passes. https://gitlab.freedesktop.org/libevdev/libevdev/issues/2 Signed-off-by: Peter Hutterer --- .gitlab-ci.yml | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..3728b97 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,53 @@ +# vim: set expandtab shiftwidth=2 tabstop=8 textwidth=0: + +variables: + FEDORA_RPMS: 'gcc gcc-c++ automake libtool make pkgconfig python3 check-devel valgrind binutils doxygen xz' + CENTOS_RPMS: $FEDORA_RPMS + UBUNTU_DEBS: 'gcc g++ automake libtool make pkg-config python3 check valgrind binutils doxygen xz-utils' + DEBIAN_DEBS: $UBUNTU_DEBS + LIBEVDEV_SKIP_ROOT_TESTS: 1 + +.default_artifacts: &default_artifacts + artifacts: + paths: + - test/test-suite.log + expire_in: 1 week + when: on_failure + +.default_build_distcheck: &default_build_distcheck + script: + - autoreconf -ivf + - ./configure --disable-silent-rules + - make + - make check + - make distcheck + +fedora:28: + image: fedora:28 + before_script: + - dnf upgrade -y + - dnf install -y $FEDORA_RPMS + <<: *default_build_distcheck + +centos:7: + image: centos:7 + before_script: + - yum update -y + - yum install -y $CENTOS_RPMS + <<: *default_build_distcheck + +ubuntu:18.04: + image: ubuntu:18.04 + before_script: + - apt-get update + - apt-get upgrade -y + - apt-get install -y $UBUNTU_DEBS + <<: *default_build_distcheck + +debian:stable: + image: debian:stable + before_script: + - apt-get update + - apt-get upgrade -y + - apt-get install -y $DEBIAN_DEBS + <<: *default_build_distcheck -- 2.34.1