openethereum/scripts/hook.sh

13 lines
300 B
Bash
Raw Normal View History

2016-07-11 18:30:58 +02:00
#!/bin/sh
FILE=./.git/hooks/pre-push
echo "#!/bin/sh\n" > $FILE
# Exit on any error
echo "set -e" >> $FILE
# Run release build
echo "cargo build --features dev" >> $FILE
# Build tests
echo "cargo test --no-run --features dev --all --exclude parity-ipfs-api" >> $FILE
2016-07-11 18:30:58 +02:00
echo "" >> $FILE
chmod +x $FILE