added a pre-push hook. move fips test to pre-push check
This commit is contained in:
parent
2cbb30745e
commit
e1513c30d2
@ -9,6 +9,7 @@ if test -d .git; then
|
||||
mkdir .git/hooks
|
||||
fi
|
||||
ln -s -f ../../pre-commit.sh .git/hooks/pre-commit
|
||||
ln -s -f ../../pre-push.sh .git/hooks/pre-push
|
||||
fi
|
||||
|
||||
# Set HAVE_FIPS_SOURCE to 1 in your .profile if you have access to the FIPS
|
||||
|
@ -31,12 +31,4 @@ make -j 8 test;
|
||||
RESULT=$?
|
||||
[ $RESULT -ne 0 ] && echo -e "\n\nFull config make test failed" && exit 1
|
||||
|
||||
if [ -n "$HAVE_FIPS_SOURCE" ];
|
||||
then
|
||||
echo -e "\n\nTesting with FIPS release code...\n\n"
|
||||
./fips-check.sh
|
||||
RESULT=$?
|
||||
[ $RESULT -ne 0 ] && echo -e "\n\nFIPS build test failed" && exit 1
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
19
pre-push.sh
Executable file
19
pre-push.sh
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
#
|
||||
# Our "pre-push" hook.
|
||||
|
||||
RESULT=0
|
||||
|
||||
if [ -n "$HAVE_FIPS_SOURCE" ];
|
||||
then
|
||||
echo -e "\n\nTesting with FIPS release code...\n\n"
|
||||
./fips-check.sh --no-keep
|
||||
RESULT=$?
|
||||
[ $RESULT -ne 0 ] && echo -e "\n\nFIPS build test failed" && exit 1
|
||||
fi
|
||||
|
||||
[ $RESULT -ne 0 ] && echo "\nOops, your push failed\n" && exit 1
|
||||
|
||||
echo "\nPush tests passed!\n"
|
||||
exit 0
|
Loading…
Reference in New Issue
Block a user