Skip to content

Commit

Permalink
Add pgtap (#301)
Browse files Browse the repository at this point in the history
Co-authored-by: Evan Stanton <evanstanton@Evans-MBP.fritz.box>
Co-authored-by: Ian Stanton <ian@coredb.io>
  • Loading branch information
3 people authored Aug 1, 2023
1 parent eca1399 commit de78577
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
12 changes: 12 additions & 0 deletions contrib/pgtap/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
20 changes: 20 additions & 0 deletions contrib/pgtap/Trunk.toml
Original file line number Diff line number Diff line change
@@ -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
"""

0 comments on commit de78577

Please sign in to comment.