From de7857756cd40fe1f511b2a420329a1ebad30c12 Mon Sep 17 00:00:00 2001 From: Evan H Stanton <79367212+EvanHStanton@users.noreply.github.com> Date: Tue, 1 Aug 2023 12:29:10 +0200 Subject: [PATCH] Add pgtap (#301) Co-authored-by: Evan Stanton Co-authored-by: Ian Stanton --- contrib/pgtap/Dockerfile | 12 ++++++++++++ contrib/pgtap/Trunk.toml | 20 ++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 contrib/pgtap/Dockerfile create mode 100644 contrib/pgtap/Trunk.toml diff --git a/contrib/pgtap/Dockerfile b/contrib/pgtap/Dockerfile new file mode 100644 index 00000000..e71114e2 --- /dev/null +++ b/contrib/pgtap/Dockerfile @@ -0,0 +1,12 @@ +ARG PG_VERSION=15 +FROM quay.io/coredb/c-builder:pg${PG_VERSION} + +# Clone repository +RUN git clone https://github.com/theory/pgtap.git + +ARG RELEASE=v1.2.0 + +RUN cd pgtap && \ + git fetch origin ${RELEASE} && \ + git checkout ${RELEASE} && \ + make diff --git a/contrib/pgtap/Trunk.toml b/contrib/pgtap/Trunk.toml new file mode 100644 index 00000000..3ce48781 --- /dev/null +++ b/contrib/pgtap/Trunk.toml @@ -0,0 +1,20 @@ +[extension] +name = "pgtap" +version = "1.2.0" +repository = "https://github.com/theory/pgtap" +license = "Copyright" +description = "Unit testing for PostgreSQL." +homepage = "https://pgtap.org/" +documentation = "https://pgtap.org/documentation.html" +categories = ["tooling_admin"] + +[build] +postgres_version = "15" +platform = "linux/amd64" +dockerfile = "Dockerfile" +install_command = """ + cd pgtap && make install + set -x + mv /usr/local/pgsql/share/extension/* /usr/share/postgresql/15/extension + mv /usr/local/pgsql/lib/* /usr/lib/postgresql/15/lib + """