]> git.eshelyaron.com Git - emacs.git/commitdiff
Adapt .gitlab-ci.yml
authorMichael Albinus <michael.albinus@gmx.de>
Mon, 7 Jan 2019 09:16:39 +0000 (10:16 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Mon, 7 Jan 2019 09:16:39 +0000 (10:16 +0100)
* .gitlab-ci.yml (variables): Move outside jobs.  Use
"GIT_STRATEGY: fetch".
(stages): Declare test-all and test-filenotify-gio.
(test-all): Rename from "test".  Install and remove inotify-tools.
Call "make check-expensive".
(test-filenotify-gio): New job.

.gitlab-ci.yml

index 190a42b7df16b841e7425d39167d457ea2129638..f427e85c4a2a3ce05a3e97d3e1e89286f77b7db6 100644 (file)
 # evaluation purposes, thus possibly temporary.
 
 # Maintainer: tzz@lifelogs.com
-# URL: https://gitlab.com/emacs-ci/emacs
+# URL: https://emba.gnu.org/emacs/emacs
 
 image: debian:stretch
 
+variables:
+  GIT_STRATEGY: fetch
+  EMACS_EMBA_CI: 1
+
 before_script:
   - apt update -qq
-  - 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 inotify-tools
+  - 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
 
 stages:
-  - test
+  - test-all
+  - test-filenotify-gio
 
-test:
-  stage: test
-  variables:
-    EMACS_EMBA_CI: 1
+test-all:
+  stage: test-all
   script:
+    - DEBIAN_FRONTEND=noninteractive apt install --no-install-recommends -y >
+      -qq -o=Dpkg::Use-Pty=0 inotify-tools
     - ./autogen.sh autoconf
     - ./configure --without-makeinfo
     - make bootstrap
+    - make check-expensive
+  after_script:
+    - DEBIAN_FRONTEND=noninteractive apt remove --no-install-recommends -y >
+      -qq -o=Dpkg::Use-Pty=0 inotify-tools
+
+test-filenotify-gio:
+  stage: test-filenotify-gio
+  when: always
+  only:
+    changes:
+      - .gitlab-ci.yml
+      - lisp/filenotify.el
+      - test/lisp/filenotify-tests.el
+  script:
+    - DEBIAN_FRONTEND=noninteractive apt install --no-install-recommends -y >
+      -qq -o=Dpkg::Use-Pty=0 libglib2.0-bin
+    - ./autogen.sh autoconf
+    - ./configure --without-makeinfo --with-file-notification=gfile
+    - make bootstrap
     - make -C test filenotify-tests
+  after_script:
+    - DEBIAN_FRONTEND=noninteractive apt remove --no-install-recommends -y >
+      -qq -o=Dpkg::Use-Pty=0 libglib2.0-bin