mirror of
https://github.com/postgres/postgres.git
synced 2025-04-21 12:05:57 +03:00
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
This commit is contained in:
parent
068739fb4f
commit
225fb558cd
20
.cirrus.yml
20
.cirrus.yml
@ -73,10 +73,12 @@ task:
|
|||||||
chown -R postgres:postgres .
|
chown -R postgres:postgres .
|
||||||
mkdir -p ${CCACHE_DIR}
|
mkdir -p ${CCACHE_DIR}
|
||||||
chown -R postgres:postgres ${CCACHE_DIR}
|
chown -R postgres:postgres ${CCACHE_DIR}
|
||||||
setup_cores_script: |
|
setup_core_files_script: |
|
||||||
mkdir -m 770 /tmp/cores
|
mkdir -m 770 /tmp/cores
|
||||||
chown root:postgres /tmp/cores
|
chown root:postgres /tmp/cores
|
||||||
sysctl kern.corefile='/tmp/cores/%N.%P.core'
|
sysctl kern.corefile='/tmp/cores/%N.%P.core'
|
||||||
|
setup_additional_packages_script: |
|
||||||
|
#pkg install -y ...
|
||||||
|
|
||||||
# NB: Intentionally build without --with-llvm. The freebsd image size is
|
# NB: Intentionally build without --with-llvm. The freebsd image size is
|
||||||
# already large enough to make VM startup slow, and even without llvm
|
# already large enough to make VM startup slow, and even without llvm
|
||||||
@ -180,10 +182,13 @@ task:
|
|||||||
chown -R postgres:postgres ${CCACHE_DIR}
|
chown -R postgres:postgres ${CCACHE_DIR}
|
||||||
echo '* - memlock 134217728' > /etc/security/limits.d/postgres.conf
|
echo '* - memlock 134217728' > /etc/security/limits.d/postgres.conf
|
||||||
su postgres -c "ulimit -l -H && ulimit -l -S"
|
su postgres -c "ulimit -l -H && ulimit -l -S"
|
||||||
setup_cores_script: |
|
setup_core_files_script: |
|
||||||
mkdir -m 770 /tmp/cores
|
mkdir -m 770 /tmp/cores
|
||||||
chown root:postgres /tmp/cores
|
chown root:postgres /tmp/cores
|
||||||
sysctl kernel.core_pattern='/tmp/cores/%e-%s-%p.core'
|
sysctl kernel.core_pattern='/tmp/cores/%e-%s-%p.core'
|
||||||
|
setup_additional_packages_script: |
|
||||||
|
#apt-get update
|
||||||
|
#DEBIAN_FRONTEND=noninteractive apt-get -y install ...
|
||||||
|
|
||||||
configure_script: |
|
configure_script: |
|
||||||
su postgres <<-EOF
|
su postgres <<-EOF
|
||||||
@ -237,7 +242,7 @@ task:
|
|||||||
ulimit -a -H && ulimit -a -S
|
ulimit -a -H && ulimit -a -S
|
||||||
export
|
export
|
||||||
|
|
||||||
setup_cores_script:
|
setup_core_files_script:
|
||||||
- mkdir ${HOME}/cores
|
- mkdir ${HOME}/cores
|
||||||
- sudo sysctl kern.corefile="${HOME}/cores/core.%P"
|
- sudo sysctl kern.corefile="${HOME}/cores/core.%P"
|
||||||
|
|
||||||
@ -254,7 +259,7 @@ task:
|
|||||||
# packages do not need to be downloaded.
|
# packages do not need to be downloaded.
|
||||||
homebrew_cache:
|
homebrew_cache:
|
||||||
folder: $HOMEBREW_CACHE
|
folder: $HOMEBREW_CACHE
|
||||||
homebrew_install_script: |
|
setup_additional_packages_script: |
|
||||||
brew install \
|
brew install \
|
||||||
ccache \
|
ccache \
|
||||||
icu4c \
|
icu4c \
|
||||||
@ -389,6 +394,9 @@ task:
|
|||||||
powershell -Command get-psdrive -psprovider filesystem
|
powershell -Command get-psdrive -psprovider filesystem
|
||||||
set
|
set
|
||||||
|
|
||||||
|
setup_additional_packages_script: |
|
||||||
|
REM choco install -y --no-progress ...
|
||||||
|
|
||||||
configure_script:
|
configure_script:
|
||||||
# copy errors out when using forward slashes
|
# copy errors out when using forward slashes
|
||||||
- copy src\tools\ci\windows_build_config.pl src\tools\msvc\config.pl
|
- copy src\tools\ci\windows_build_config.pl src\tools\msvc\config.pl
|
||||||
@ -484,6 +492,10 @@ task:
|
|||||||
ccache_cache:
|
ccache_cache:
|
||||||
folder: $CCACHE_DIR
|
folder: $CCACHE_DIR
|
||||||
|
|
||||||
|
setup_additional_packages_script: |
|
||||||
|
#apt-get update
|
||||||
|
#DEBIAN_FRONTEND=noninteractive apt-get -y install ...
|
||||||
|
|
||||||
###
|
###
|
||||||
# Test that code can be built with gcc/clang without warnings
|
# Test that code can be built with gcc/clang without warnings
|
||||||
###
|
###
|
||||||
|
Loading…
x
Reference in New Issue
Block a user