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