Skip to content
hook.sh 417 B
Newer Older
Tomusdrw's avatar
Tomusdrw committed
#!/bin/sh
FILE=./.git/hooks/pre-push
echo "#!/bin/sh\n" > $FILE
# Exit on any error
echo "set -e" >> $FILE
# Run release build
Tomasz Drwięga's avatar
Tomasz Drwięga committed
echo "cargo build --features dev" >> $FILE
echo "cargo test --no-run --features dev \\" >> $FILE
echo " -p ethkey -p ethstore -p ethash -p ethcore-util -p ethcore -p ethsync -p ethcore-rpc -p parity -p ethcore-dapps -p ethcore-signer" >> $FILE