Skip to content

Commit 225fb55

Browse files
committed
ci: include hints how to install OS packages.
This is useful for patches during development, but once a feature is merged, new libraries should be added to the OS image files, rather than installed during every CI run forever into the future. Author: Justin Pryzby <pryzbyj@telsasoft.com> Reviewed-By: Andres Freund <andres@anarazel.de> Discussion: https://postgr.es/m/20220310220611.GH28503@telsasoft.com
1 parent 068739f commit 225fb55

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.cirrus.yml

+16-4
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,12 @@ task:
7373
chown -R postgres:postgres .
7474
mkdir -p ${CCACHE_DIR}
7575
chown -R postgres:postgres ${CCACHE_DIR}
76-
setup_cores_script: |
76+
setup_core_files_script: |
7777
mkdir -m 770 /tmp/cores
7878
chown root:postgres /tmp/cores
7979
sysctl kern.corefile='/tmp/cores/%N.%P.core'
80+
setup_additional_packages_script: |
81+
#pkg install -y ...
8082
8183
# NB: Intentionally build without --with-llvm. The freebsd image size is
8284
# already large enough to make VM startup slow, and even without llvm
@@ -180,10 +182,13 @@ task:
180182
chown -R postgres:postgres ${CCACHE_DIR}
181183
echo '* - memlock 134217728' > /etc/security/limits.d/postgres.conf
182184
su postgres -c "ulimit -l -H && ulimit -l -S"
183-
setup_cores_script: |
185+
setup_core_files_script: |
184186
mkdir -m 770 /tmp/cores
185187
chown root:postgres /tmp/cores
186188
sysctl kernel.core_pattern='/tmp/cores/%e-%s-%p.core'
189+
setup_additional_packages_script: |
190+
#apt-get update
191+
#DEBIAN_FRONTEND=noninteractive apt-get -y install ...
187192
188193
configure_script: |
189194
su postgres <<-EOF
@@ -237,7 +242,7 @@ task:
237242
ulimit -a -H && ulimit -a -S
238243
export
239244
240-
setup_cores_script:
245+
setup_core_files_script:
241246
- mkdir ${HOME}/cores
242247
- sudo sysctl kern.corefile="${HOME}/cores/core.%P"
243248

@@ -254,7 +259,7 @@ task:
254259
# packages do not need to be downloaded.
255260
homebrew_cache:
256261
folder: $HOMEBREW_CACHE
257-
homebrew_install_script: |
262+
setup_additional_packages_script: |
258263
brew install \
259264
ccache \
260265
icu4c \
@@ -389,6 +394,9 @@ task:
389394
powershell -Command get-psdrive -psprovider filesystem
390395
set
391396
397+
setup_additional_packages_script: |
398+
REM choco install -y --no-progress ...
399+
392400
configure_script:
393401
# copy errors out when using forward slashes
394402
- copy src\tools\ci\windows_build_config.pl src\tools\msvc\config.pl
@@ -484,6 +492,10 @@ task:
484492
ccache_cache:
485493
folder: $CCACHE_DIR
486494

495+
setup_additional_packages_script: |
496+
#apt-get update
497+
#DEBIAN_FRONTEND=noninteractive apt-get -y install ...
498+
487499
###
488500
# Test that code can be built with gcc/clang without warnings
489501
###

0 commit comments

Comments
 (0)