restructure CI git operations

This commit is contained in:
checktheroads 2019-06-17 01:40:18 -07:00
parent adfe1224db
commit f4c17a3f69

View file

@ -7,7 +7,7 @@ setup_git() {
check_format() {
black hyperglass
git checkout origin/master
git checkout master
git add hyperglass/ *.py
git commit --message "Black Formatting - travis #$TRAVIS_BUILD_NUMBER"
echo "Completed Black Formatting"
@ -16,7 +16,7 @@ check_format() {
check_pylint() {
PYLINT_SCORE=$(python3 manage.py pylint-badge --integer-only True)
echo "Pylint score: $PYLINT_SCORE"
git checkout origin/master
git checkout master
git add pylint.svg
git commit --message "Pylint Badge - travis #$TRAVIS_BUILD_NUMBER"
echo "Completed Pylint Check & Badge Creation"