An electric test is now passing
[emacs.git] / .gitlab-ci.yml
blobdf48764c52a8121ba9ea26529d9a2cdee0147453
1 # Copyright (C) 2017-2019 Free Software Foundation, Inc.
3 #  This file is part of GNU Emacs.
5 #  GNU Emacs is free software: you can redistribute it and/or modify
6 #  it under the terms of the GNU General Public License as published by
7 #  the Free Software Foundation, either version 3 of the License, or
8 #  (at your option) any later version.
10 #  GNU Emacs is distributed in the hope that it will be useful,
11 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
12 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 #  GNU General Public License for more details.
15 #  You should have received a copy of the GNU General Public License
16 #  along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.
18 # GNU Emacs support for the GitLab protocol for CI
20 # The presence of this file does not imply any FSF/GNU endorsement of
21 # any particular service that uses that protocol.  Also, it is intended for
22 # evaluation purposes, thus possibly temporary.
24 # Maintainer: Ted Zlatanov <tzz@lifelogs.com>
25 # URL: https://emba.gnu.org/emacs/emacs
27 image: debian:stretch
29 variables:
30   GIT_STRATEGY: fetch
31   EMACS_EMBA_CI: 1
33 before_script:
34   - apt update -qq
35   - DEBIAN_FRONTEND=noninteractive apt install --no-install-recommends -y -qq -o=Dpkg::Use-Pty=0 libc-dev gcc make autoconf automake libncurses-dev gnutls-dev git
37 stages:
38   - test
40 test-all:
41   # This tests also file monitor libraries inotify and inotifywatch.
42   stage: test
43   script:
44     - DEBIAN_FRONTEND=noninteractive apt install --no-install-recommends -y -qq -o=Dpkg::Use-Pty=0 inotify-tools
45     - ./autogen.sh autoconf
46     - ./configure --without-makeinfo
47     - make bootstrap
48     - make check-expensive
50 test-filenotify-gio:
51   stage: test
52   # This tests file monitor libraries gfilemonitor and gio.
53   only:
54     changes:
55       - .gitlab-ci.yml
56       - lisp/autorevert.el
57       - lisp/filenotify.el
58       - lisp/net/tramp-sh.el
59       - src/gfilenotify.c
60       - test/lisp/autorevert-tests.el
61       - test/lisp/filenotify-tests.el
62   script:
63     - DEBIAN_FRONTEND=noninteractive apt install --no-install-recommends -y -qq -o=Dpkg::Use-Pty=0 libglib2.0-dev libglib2.0-bin libglib2.0-0
64     - ./autogen.sh autoconf
65     - ./configure --without-makeinfo --with-file-notification=gfile
66     - make bootstrap
67     - make -C test autorevert-tests filenotify-tests