03da6c991f
Conflicts: Cargo.lock Cargo.toml ethcore/src/client/client.rs hook.sh parity/main.rs rpc/Cargo.toml rpc/src/v1/impls/eth.rs sync/Cargo.toml sync/src/tests/helpers.rs
13 lines
382 B
Bash
Executable File
13 lines
382 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 --release --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" >> $FILE
|
|
echo "" >> $FILE
|
|
chmod +x $FILE
|