Mercurial > vim
view .cirrus.yml @ 35920:9a9a2203515c
runtime(zip): use defer to restore old settings
Commit: https://github.com/vim/vim/commit/afea6b946827e964271eb19579946a7f88d2f329
Author: Christian Brabandt <cb@256bit.org>
Date: Tue Aug 6 18:50:59 2024 +0200
runtime(zip): use defer to restore old settings
Problem: RestoreOpts() plugin called too often
Solution: use :defer to have the RestoreOpts() function
called when the function returns automatically
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 06 Aug 2024 20:30:10 +0200 |
parents | 956a5fa10aaa |
children | 8eb6c3f6232f |
line wrap: on
line source
env: CIRRUS_CLONE_DEPTH: 3 FEATURES: huge freebsd_task: name: FreeBSD matrix: - name: FreeBSD 14.1 freebsd_instance: image_family: freebsd-14-1 timeout_in: 20m install_script: - pkg install -y gettext build_script: - NPROC=$(getconf _NPROCESSORS_ONLN) - ./configure --with-features=${FEATURES} - make -j${NPROC} test_script: - src/vim --version # run tests as user "cirrus" instead of root - pw useradd cirrus -m - chown -R cirrus:cirrus . - sudo -u cirrus make test