1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00
checktheroads 658e39456d ci updates
2019-06-17 01:14:29 -07:00

29 lines
659 B
Bash
Executable File

#!/bin/sh
setup_git() {
git config --global user.email "travis@travis-ci.org"
git config --global user.name "Travis CI"
}
check_format() {
black hyperglass
git add hyperglass/ *.py
git commit --message "Black Formatting - travis #$TRAVIS_BUILD_NUMBER"
echo "Completed Black Formatting"
}
check_pylint() {
PYLINT_SCORE=$(python3 manage.py pylint-badge --integer-only True)
echo "Pylint score: $PYLINT_SCORE"
if [ "$PYLINT_SCORE" == "10.00" ]
then
git add pylint.svg
git commit --message "Pylint Badge - travis #$TRAVIS_BUILD_NUMBER"
echo "Completed Pylint Check & Badge Creation"
fi
}
setup_git
check_format
check_pylint