summaryrefslogtreecommitdiff
path: root/test/infra/gitlab-ci.yml
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2021-10-03 19:40:14 +0200
committerMichael Albinus <michael.albinus@gmx.de>2021-10-03 19:40:14 +0200
commit9d77dea374a08cafb0b0e4a0c1102671bf8f6f8b (patch)
tree9fc8bae3a74379c831832334bc8b0fea3b0d5411 /test/infra/gitlab-ci.yml
parent72491495e7b4b574f04fd18902c61dca84dcbc1b (diff)
downloademacs-9d77dea374a08cafb0b0e4a0c1102671bf8f6f8b.tar.gz
Improve native compilation on emba
* test/infra/Dockerfile.emba (emacs-native-comp) (emacs-native-comp-speed1, emacs-native-comp-speed2): New stages. (emacs-native-comp-speed0): Adapt. * test/infra/gitlab-ci.yml (.build-template): Add 'needs: []'. (.native-comp-template): Use 'only:' instead of 'rules:'. (build-native-comp-speed0): Rename from 'build-native-bootstrap-speed0'. (build-native-comp-speed1, build-native-comp-speed2) (test-native-comp-speed0): New jobs.
Diffstat (limited to 'test/infra/gitlab-ci.yml')
-rw-r--r--test/infra/gitlab-ci.yml64
1 files changed, 22 insertions, 42 deletions
diff --git a/test/infra/gitlab-ci.yml b/test/infra/gitlab-ci.yml
index b233c0fbc54..3c6d836b580 100644
--- a/test/infra/gitlab-ci.yml
+++ b/test/infra/gitlab-ci.yml
@@ -116,6 +116,7 @@ default:
- test -n "$(docker ps -aq -f name=${test_name})" && docker rm ${test_name}
.build-template:
+ needs: []
rules:
- if: '$CI_PIPELINE_SOURCE == "web"'
when: always
@@ -189,18 +190,9 @@ default:
- test/lisp/filenotify-tests.el
.native-comp-template:
- rules:
- - if: '$CI_PIPELINE_SOURCE == "web"'
- - if: '$CI_PIPELINE_SOURCE == "schedule"'
- changes:
- - "**/Makefile.in"
- - .gitlab-ci.yml
- - lisp/emacs-lisp/comp.el
- - lisp/emacs-lisp/comp-cstr.el
- - src/comp.{h,m}
- - test/infra/*
- - test/src/comp-resources/*.el
- - test/src/comp-tests.el
+ only:
+ - web
+ - schedules
timeout: 8 hours
stages:
@@ -270,43 +262,31 @@ test-gnustep:
target: emacs-gnustep
make_params: install
-build-native-bootstrap-speed0:
+build-native-comp-speed0:
stage: native-comp-images
extends: [.job-template, .build-template, .native-comp-template]
variables:
target: emacs-native-comp-speed0
-# build-native-bootstrap-speed0:
-# # Test a full native bootstrap
-# # Run for now only speed 0 to limit memory usage and compilation time.
-# stage: native-comp-images
-# # Uncomment the following to run it only when scheduled.
-# # only:
-# # - schedules
-# script:
-# - DEBIAN_FRONTEND=noninteractive apt install --no-install-recommends -y -qq -o=Dpkg::Use-Pty=0 libgccjit-6-dev
-# - ./autogen.sh autoconf
-# - ./configure --with-native-compilation
-# - make bootstrap NATIVE_FULL_AOT=1 BYTE_COMPILE_EXTRA_FLAGS='--eval "(setq comp-speed 0)"' -j2
-# timeout: 8 hours
+build-native-comp-speed1:
+ stage: native-comp-images
+ extends: [.job-template, .build-template, .native-comp-template]
+ variables:
+ target: emacs-native-comp-speed1
-# build-native-bootstrap-speed1:
-# stage: native-comp-images
-# script:
-# - DEBIAN_FRONTEND=noninteractive apt install --no-install-recommends -y -qq -o=Dpkg::Use-Pty=0 libgccjit-6-dev
-# - ./autogen.sh autoconf
-# - ./configure --with-native-compilation
-# - make bootstrap BYTE_COMPILE_EXTRA_FLAGS='--eval "(setq comp-speed 1)"'
-# timeout: 8 hours
+build-native-comp-speed2:
+ stage: native-comp-images
+ extends: [.job-template, .build-template, .native-comp-template]
+ variables:
+ target: emacs-native-comp-speed2
-# build-native-bootstrap-speed2:
-# stage: native-comp-images
-# script:
-# - DEBIAN_FRONTEND=noninteractive apt install --no-install-recommends -y -qq -o=Dpkg::Use-Pty=0 libgccjit-6-dev
-# - ./autogen.sh autoconf
-# - ./configure --with-native-compilation
-# - make bootstrap
-# timeout: 8 hours
+test-native-comp-speed0:
+ stage: native-comp
+ needs: [build-native-comp-speed0]
+ extends: [.job-template, .test-template, .native-comp-template]
+ variables:
+ target: emacs-native-comp-speed0
+ make_params: "-C test native-comp.log"
test-all-inotify:
# This tests also file monitor libraries inotify and inotifywatch.