From: Michael Albinus Date: Sun, 28 Nov 2021 12:45:43 +0000 (+0100) Subject: Adapt gitlab-ci.yml X-Git-Tag: emacs-29.0.90~3649^2~14 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1272a2cb6384e1d99586486a4903e17b43cbc3cd;p=emacs.git Adapt gitlab-ci.yml * test/infra/gitlab-ci.yml (variables): Set EMACS_TEST_TIMEOUT to 3600. (.job-template, .test-template): Another approach to catch test artifacts on emba. --- diff --git a/test/infra/gitlab-ci.yml b/test/infra/gitlab-ci.yml index 759b8f69801..d12876e7727 100644 --- a/test/infra/gitlab-ci.yml +++ b/test/infra/gitlab-ci.yml @@ -44,8 +44,7 @@ workflow: variables: GIT_STRATEGY: fetch EMACS_EMBA_CI: 1 - # Three hours, see below. - EMACS_TEST_TIMEOUT: 10800 + EMACS_TEST_TIMEOUT: 3600 EMACS_TEST_VERBOSE: 1 # Use TLS https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#tls-enabled # DOCKER_HOST: tcp://docker:2376 @@ -91,9 +90,11 @@ default: # - docker ps -a # - printenv # - test -n "$(docker ps -aq -f name=${test_name})" && ( docker export ${test_name} | tar -tvf - ) + # Prepare test artifacts. - test -n "$(docker ps -aq -f name=${test_name})" && docker cp ${test_name}:checkout/test ${test_name} - test -n "$(docker ps -aq -f name=${test_name})" && docker rm ${test_name} - # - ls -alR ${test_name} + - find ${test_name} ! -name "*.log" -type f -delete + - find ${test_name} -empty -type d -delete .build-template: needs: [] @@ -133,7 +134,7 @@ default: public: true expire_in: 1 week paths: - - "${test_name}/**/*.log" + - ${test_name}/ when: always .gnustep-template: