Skip to content

Commit be9cbda

Browse files
committed
Merge pull request sclorg#29 from rhcarvalho/build-hook
Add build post commit hook to run tests
2 parents 4706c39 + 283a460 commit be9cbda

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

openshift/templates/django-postgresql.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@
106106
"secret": "${GITHUB_WEBHOOK_SECRET}"
107107
}
108108
}
109-
]
109+
],
110+
"postCommit": {
111+
"script": "./manage.py test"
112+
}
110113
}
111114
},
112115
{

openshift/templates/django.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@
106106
"secret": "${GITHUB_WEBHOOK_SECRET}"
107107
}
108108
}
109-
]
109+
],
110+
"postCommit": {
111+
"script": "./manage.py test"
112+
}
110113
}
111114
},
112115
{

0 commit comments

Comments
 (0)