mirror of
https://github.com/postgres/postgres.git
synced 2025-05-25 00:04:05 -04:00
Just as we use pgindent to validate that our c files conform to postgres coding standards, we also run pgperltidy to do the same for perl files. We only run it on our own code in contrib/pg_tde/ This doesn't actually run pgperltidy as we need to inject some options in a way that didn't seem possible in that script. Instead it does the same thing with some slight changes. We also bump the ubuntu version for this google actions job to the newest LTS as the older ubuntu version seems to have a version of perltidy that doesn't support the options used by pgperltidy.
59 lines
1.2 KiB
Bash
Executable File
59 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
DEPS=(
|
|
# Setup
|
|
wget
|
|
# Build
|
|
bison
|
|
docbook-xml
|
|
docbook-xsl
|
|
flex
|
|
gettext
|
|
libicu-dev
|
|
libkrb5-dev
|
|
libldap2-dev
|
|
liblz4-dev
|
|
libpam0g-dev
|
|
libperl-dev
|
|
libreadline-dev
|
|
libselinux1-dev
|
|
libssl-dev
|
|
libsystemd-dev
|
|
libxml2-dev
|
|
libxml2-utils
|
|
libxslt1-dev
|
|
libzstd-dev
|
|
lz4
|
|
mawk
|
|
meson
|
|
perl
|
|
pkgconf
|
|
python3-dev
|
|
systemtap-sdt-dev
|
|
tcl-dev
|
|
uuid-dev
|
|
xsltproc
|
|
zlib1g-dev
|
|
zstd
|
|
# Build pg_tde
|
|
libcurl4-openssl-dev
|
|
# Test
|
|
libipc-run-perl
|
|
# Test pg_tde
|
|
python3-pykmip
|
|
libhttp-server-simple-perl
|
|
lcov
|
|
# Run pgperltidy
|
|
perltidy
|
|
)
|
|
|
|
sudo apt-get update
|
|
sudo apt-get install -y ${DEPS[@]}
|
|
|
|
bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"
|
|
|
|
# Vault
|
|
wget -O - https://apt.releases.hashicorp.com/gpg | sudo tee /etc/apt/keyrings/hashicorp-archive-keyring.asc
|
|
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/hashicorp-archive-keyring.asc] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
|
|
sudo apt-get update && sudo apt-get install -y vault
|