Created
June 25, 2019 15:55
-
-
Save rafamaciel/8a72ae0d4c179c8dae9317e7d534763f to your computer and use it in GitHub Desktop.
Check Rubycritic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rake rubycritic:specs:ci | tee /tmp/rubycritic.specs.log | |
export RUBYCRITIC_SPECS_SCORE=`cat /tmp/rubycritic.specs.log | grep 'Score' | cut -d " " -f 2 | tr -d '()'` | |
export RUBYCRITIC_SPECS_SCORE=${RUBYCRITIC_SPECS_SCORE%.*} | |
if [[ $RUBYCRITIC_SPECS_SCORE -lt $RUBYCRITIC_SPECS_MINIMUM_SCORE ]] | |
then | |
echo $RUBYCRITIC_SPECS_SCORE | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rake rubycritic:ci | tee /tmp/rubycritic.log | |
export RUBYCRITIC_SCORE=`cat /tmp/rubycritic.log | grep 'Score' | cut -d " " -f 2 | tr -d '()'` | |
export RUBYCRITIC_SCORE=${RUBYCRITIC_SCORE%.*} | |
if [[ $RUBYCRITIC_SCORE -lt $RUBYCRITIC_MINIMUM_SCORE ]] | |
then | |
echo $RUBYCRITIC_SCORE | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment