Meta: (pre-push) Only test before pushing master
This commit is contained in:
parent
6fb8b42e3b
commit
73209cf48e
1 changed files with 7 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
# * Commit parameters
|
# * Commit parameters
|
||||||
# Unused now, but good for future reference. See man 5 githooks.
|
# Unused now, but good for future reference. See man 5 githooks.
|
||||||
|
|
@ -14,4 +14,9 @@ read local_ref local_sha remote_ref remote_sha
|
||||||
# cause remote code to be downloaded and executed (i.e. what would
|
# cause remote code to be downloaded and executed (i.e. what would
|
||||||
# happen by installing packages). It can be done manually when needed.
|
# happen by installing packages). It can be done manually when needed.
|
||||||
|
|
||||||
|
# Only run when pushing master.
|
||||||
|
|
||||||
|
if [[ $local_ref = refs/heads/master ]]
|
||||||
|
then
|
||||||
make sandbox=.sandbox test
|
make sandbox=.sandbox test
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue