From 283a460018cb48faf4446b618d86313c5f2ebc77 Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Mon, 22 Feb 2016 18:46:48 +0100 Subject: [PATCH] Add build post commit hook to run tests --- openshift/templates/django-postgresql.json | 5 ++++- openshift/templates/django.json | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/openshift/templates/django-postgresql.json b/openshift/templates/django-postgresql.json index c4c55dd..ab35eab 100644 --- a/openshift/templates/django-postgresql.json +++ b/openshift/templates/django-postgresql.json @@ -106,7 +106,10 @@ "secret": "${GITHUB_WEBHOOK_SECRET}" } } - ] + ], + "postCommit": { + "script": "./manage.py test" + } } }, { diff --git a/openshift/templates/django.json b/openshift/templates/django.json index 75b6798..57037ec 100644 --- a/openshift/templates/django.json +++ b/openshift/templates/django.json @@ -106,7 +106,10 @@ "secret": "${GITHUB_WEBHOOK_SECRET}" } } - ] + ], + "postCommit": { + "script": "./manage.py test" + } } }, {