cc1a334ba7
* Renaming dapps repos. Updating dapps * Skipping legacy options for compatibility. Fixing tabs * Fixing CLI options
13 lines
389 B
Bash
Executable File
13 lines
389 B
Bash
Executable File
#!/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 \\" >> $FILE
|
|
echo " -p ethash -p ethcore-util -p ethcore -p ethsync -p ethcore-rpc -p parity -p ethminer -p ethcore-dapps" >> $FILE
|
|
echo "" >> $FILE
|
|
chmod +x $FILE
|