diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2019-08-30 14:33:30 +1000 |
---|---|---|
committer | Sergey Udaltsov <sergey.udaltsov@gmail.com> | 2019-09-24 01:28:06 +0100 |
commit | 75adcd543befa3c37c8e778b796176e525ba6091 (patch) | |
tree | 5fcfdda0ae321f5dab3ea07d18570a8ff16db870 /.gitlab-ci.yml | |
parent | 0eafa373cd817d02b7ff48c93e6fded29b5b57c1 (diff) | |
download | xkeyboard-config-75adcd543befa3c37c8e778b796176e525ba6091.tar.gz |
Add basic testing to the CI
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..5326c2c --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,45 @@ +# vim: set expandtab shiftwidth=2 tabstop=8 textwidth=0: + +variables: + ARCH_PKGS: 'xorg-util-macros autoconf automake make gettext pkg-config gcc grep m4' + BUILDDIR: '_build' + INSTDIR: '$HOME/_inst' + CONFIGURE_ARGS: '' + MAKE_EXTRA_ARG: '' + +# We use arch because the image updates frequently and we're not stuck +# forever in the update phase +.default_setup: + image: archlinux/base + before_script: + - pacman -S --refresh + - pacman -S --sysupgrade --noconfirm + - pacman -S --noconfirm $ARCH_PKGS + +.default_build: + extends: .default_setup + script: + - rm -rf "$BUILDDIR" + - mkdir -p "$BUILDDIR" + - mkdir -p "$INSTDIR" + - autoreconf -ivf + - pushd "$BUILDDIR" + - ../configure --prefix="$PWD/../$INSTDIR" --disable-silent-rules --disable-runtime-deps "$CONFIGURE_ARGS" + - make + - if test x"$MAKE_EXTRA_COMMAND" != "x"; then make $MAKE_EXTRA_COMMAND; fi + +make: + extends: .default_build + stage: build + +make_check: + extends: .default_build + stage: build + variables: + MAKE_EXTRA_COMMAND: "check" + +make_distcheck: + extends: .default_build + stage: build + variables: + MAKE_EXTRA_COMMAND: "distcheck" |