Browse Source

Added pre-commit file

master
David Winterbottom 13 years ago
parent
commit
7f8b2a4654
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      pre-commit.sh

+ 7
- 0
pre-commit.sh View File

@@ -0,0 +1,7 @@
1
+#!/usr/bin/env bash
2
+
3
+source ~/.virtualenvs/oscar/bin/activate
4
+./run_tests.py
5
+[ $? -ne 0 ] && echo "Tests failed" && exit 1
6
+
7
+exit 0

Loading…
Cancel
Save