15 lines
317 B
Bash
Executable File
15 lines
317 B
Bash
Executable File
#!/bin/sh
|
|
FILE=./.git/hooks/pre-push
|
|
. ./scripts/targets.sh
|
|
|
|
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 $TARGETS >> $FILE
|
|
echo "" >> $FILE
|
|
chmod +x $FILE
|