pgTap

A Docker image for running pgTap tests against a PostgreSQL database.

Repository https://gitlab.com/ringingmountain/docker/pgtap
CI Pipeline https://gitlab.com/ringingmountain/docker/pgtap/pipelines
Documentation http://pgtap-docker.readthedocs.io/

pipeline docs

Usage

docker run -e PGPASSWORD=secret ringingmountain/pgtap:latest [-h HOSTNAME] [-p PORT] [-U USERNAME] [-t TESTS]

Quickstart Development Guide

Build Documentation

ci/docs.sh

Build Docker Image

ci/build.sh [TAG]

Run Gitlab CI Jobs Locally

You will first need to install the Gitlab runner package and register a runner on your local machine.

gitlab-runner exec docker <job_name> --docker-services docker:dind --docker-privileged

Releasing a New Version

  1. Checkout master.
  2. Decide whether you are releasing a major, minor, or patch revision. For assistance in making this choice see the SemVer standard.
  3. Ensure an entry for the version exists in CHANGELOG.rst summarizing the changes you are releasing.
  4. Update the version in docs/conf.py
  5. Commit the changes, commenting that you are bumping the version.
  6. Tag the repo with the matching version.
  7. Push to the central remote and your fork.