emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 90bd6d8: * test/infra/gitlab-ci.yml: Copy newer files to image to


From: Teodor Zlatanov
Subject: master 90bd6d8: * test/infra/gitlab-ci.yml: Copy newer files to image to build less often.
Date: Thu, 21 Jan 2021 16:39:59 -0500 (EST)

branch: master
commit 90bd6d8ba66bde8d9626f3dd05d14372734e6ce5
Author: Ted Zlatanov <tzz@lifelogs.com>
Commit: Ted Zlatanov <tzz@lifelogs.com>

    * test/infra/gitlab-ci.yml: Copy newer files to image to build less often.
---
 test/infra/gitlab-ci.yml | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/test/infra/gitlab-ci.yml b/test/infra/gitlab-ci.yml
index e5413ad..2f71d12 100644
--- a/test/infra/gitlab-ci.yml
+++ b/test/infra/gitlab-ci.yml
@@ -100,10 +100,13 @@ default:
   script:
     - docker pull ${CI_REGISTRY_IMAGE}:${target}-${BUILD_TAG}
     # TODO: with make -j4 several of the tests were failing, for example 
shadowfile-tests, but passed without it
-    - docker run -i --rm -e EMACS_EMBA_CI=${EMACS_EMBA_CI} 
${CI_REGISTRY_IMAGE}:${target}-${BUILD_TAG} make ${make_params}
+    - 'export PWD=$(pwd)'
+    - 'docker run -i --rm -e EMACS_EMBA_CI=${EMACS_EMBA_CI} --volumes-from 
$(docker ps -q -f "label=com.gitlab.gitlab-runner.job.id=${CI_JOB_ID}"):ro 
${CI_REGISTRY_IMAGE}:${target}-${BUILD_TAG} /bin/bash -c "git fetch ${PWD} HEAD 
&& echo checking out these updated files && git diff --name-only FETCH_HEAD && 
( git diff --name-only FETCH_HEAD | xargs git checkout -f FETCH_HEAD ) && make 
-j4 && make ${make_params}"'
 
 .build-template:
   rules:
+    - if: '$CI_PIPELINE_SOURCE == "web"'
+      when: always
     - changes:
         - "**/Makefile.in"
         - .gitlab-ci.yml
@@ -111,11 +114,9 @@ default:
         - autogen.sh
         - configure.ac
         - lib/*.{h,c}
-        - lisp/**/*.el
+        - lisp/emacs-lisp/*.el
         - src/*.{h,c}
         - test/infra/*
-        - test/lisp/**/*.el
-        - test/src/*.el
     - changes:
         # gfilemonitor, kqueue
         - src/gfilenotify.c



reply via email to

[Prev in Thread] Current Thread [Next in Thread]