Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add pre-commit.sh that runs tests and updates readme.

  • Loading branch information...
commit 26113a113e58263cb1516ec7b4ba529dad5d1545 1 parent 657ee8b
Magnar Sveen authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 pre-commit.sh
9 pre-commit.sh
View
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+git stash -q --keep-index
+./run-tests.sh
+RESULT=$?
+[ $RESULT == 0 ] && ./create-docs.sh && git add ./README.md
+git stash pop -q
+[ $RESULT -ne 0 ] && exit 1
+exit 0
Please sign in to comment.
Something went wrong with that request. Please try again.