Skip to content

Commit

Permalink
pre-push hook runs tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samuliheljo committed Dec 18, 2015
1 parent 0ad51cf commit 8610426
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/Installation.md
Expand Up @@ -36,6 +36,7 @@ Or you can also use this:
## Configure Git Hooks
You should configure git pre-commit hook to run tests and lint. That can be done like so:
- `ln -s ../../hooks/pre-commit.sh .git/hooks/pre-commit`
- `ln -s ../../hooks/pre-push.sh .git/hooks/pre-push`

## Configuration application
Digitransit ui can be configured in multiple ways. You can
Expand Down
1 change: 0 additions & 1 deletion hooks/pre-commit.sh
Expand Up @@ -3,4 +3,3 @@ set -e
set -x

npm run lint
npm run test-local
5 changes: 5 additions & 0 deletions hooks/pre-push.sh
@@ -0,0 +1,5 @@
#!/bin/sh
set -e
set -x

npm run test-local

0 comments on commit 8610426

Please sign in to comment.