2018-06-25 11:21:45 +02:00
|
|
|
#!/usr/bin/env sh
|
2016-07-11 18:30:58 +02:00
|
|
|
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
|
2018-04-04 11:07:49 +02:00
|
|
|
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
|