forked from mirrors/thatmattlove-hyperglass
removed redundant pylint checking logic
This commit is contained in:
parent
6045c45f67
commit
adfe1224db
1 changed files with 5 additions and 8 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/sh
|
||||
|
||||
setup_git() {
|
||||
git config --global user.email "travis@travis-ci.org"
|
||||
|
|
@ -16,13 +16,10 @@ check_format() {
|
|||
check_pylint() {
|
||||
PYLINT_SCORE=$(python3 manage.py pylint-badge --integer-only True)
|
||||
echo "Pylint score: $PYLINT_SCORE"
|
||||
if [ "$PYLINT_SCORE" == "10.00" ]
|
||||
then
|
||||
git checkout origin/master
|
||||
git add pylint.svg
|
||||
git commit --message "Pylint Badge - travis #$TRAVIS_BUILD_NUMBER"
|
||||
echo "Completed Pylint Check & Badge Creation"
|
||||
fi
|
||||
git checkout origin/master
|
||||
git add pylint.svg
|
||||
git commit --message "Pylint Badge - travis #$TRAVIS_BUILD_NUMBER"
|
||||
echo "Completed Pylint Check & Badge Creation"
|
||||
}
|
||||
|
||||
setup_git
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue