githooks/pre-push
#!/bin/sh
CC_TEST_REPORTER_ID="$CC_REPORTER_FAKEPROMISE"
gitpath=`git rev-parse --git-dir`
projectpath="$(dirname $gitpath)/"
if test "$projectpath" = './'; then
projectpath="$(pwd)/"
fi
cd $projectpath
./bin/test-reporter-latest-darwin-amd64 before-build
npm install
npm test
./bin/test-reporter-latest-darwin-amd64 after-build -p coverage/