openethereum/hook.sh

13 lines
370 B
Bash
Raw Normal View History

2016-01-22 08:09:16 +01:00
#!/bin/sh
FILE=./.git/hooks/pre-push
echo "#!/bin/sh\n" > $FILE
# Exit on any error
echo "set -e" >> $FILE
# Run release build
2016-03-11 11:16:49 +01:00
echo "cargo build --release --features dev" >> $FILE
# Build tests
2016-03-11 11:16:49 +01:00
echo "cargo test --no-run --features dev \\" >> $FILE
echo " -p ethash -p ethcore-util -p ethcore -p ethsync -p ethcore-rpc -p parity" >> $FILE
echo "" >> $FILE
chmod +x $FILE