Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Add a way to run tests in PostgreSQL in Docker #3699

Merged
merged 9 commits into from
Sep 20, 2018

Conversation

hawkowl
Copy link
Contributor

@hawkowl hawkowl commented Aug 15, 2018

No description provided.

@hawkowl hawkowl requested a review from a team August 15, 2018 12:28
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a couple of suggestions to help with maintaining this stuff...

CONTRIBUTING.rst Outdated
build, this will be shown in GitHub, so please keep an eye on the pull request
for feedback.

To run unit tests, you can use:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggest "To run unit tests on a development environment ..." to distinguish from the previous paragraph about CI and PRs

@@ -0,0 +1,8 @@
FROM matrixdotorg/sytest:latest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we stick the Dockerfile in the docker directory to avoid cluttering the top-level more than necessary?

MANIFEST.in Outdated
@@ -28,6 +28,9 @@ exclude jenkins*.sh
exclude jenkins*
exclude Dockerfile
exclude .dockerignore
exclude Dockerfile-pgtests
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is probably redundant if the dockerfile is in the docker dir?

@@ -0,0 +1,3 @@
#! /usr/bin/env bash
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#!/bin/bash is conventional for shell scripts.

Does it need a set -e so that it doesn't plough on with the run if the build fails?

@@ -0,0 +1,10 @@
export PGDATA=/var/lib/postgresql/data
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could do with a shebang line and a comment saying what it does?

and a set -e maybe?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can it go in a subdir?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -0,0 +1,8 @@
FROM matrixdotorg/sytest:latest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can it also have a comment saying what it does?

@richvdh
Copy link
Member

richvdh commented Sep 18, 2018

@hawkowl bump

@hawkowl hawkowl requested a review from a team September 19, 2018 09:17
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

CONTRIBUTING.rst Outdated
the Jenkins builds require an adminstrator to start them. If your change
breaks the build, this will be shown in github, so please keep an eye on the
pull request for feedback.
We use `Jenkins <http://matrix.org/jenkins>`_, `CircleCI
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(we don't use jenkins any more...)

@hawkowl hawkowl merged commit 741571c into develop Sep 20, 2018
@hawkowl hawkowl deleted the hawkowl/pg-tests-docker branch September 20, 2018 08:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants