2019-06-17 02:04:42 -07:00
|
|
|
#!/bin/sh
|
|
|
|
|
2019-06-17 02:17:23 -07:00
|
|
|
commit_black() {
|
2019-06-17 02:04:42 -07:00
|
|
|
git add hyperglass/ *.py
|
|
|
|
git commit --message "Black Formatting - travis $TRAVIS_BUILD_NUMBER"
|
2019-06-17 02:17:23 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
commit_pylint() {
|
2019-06-17 02:04:42 -07:00
|
|
|
git add pylint.svg
|
|
|
|
git commit --message "Pylint Badge - travis $TRAVIS_BUILD_NUMBER"
|
|
|
|
}
|
|
|
|
|
2019-06-17 02:17:23 -07:00
|
|
|
setup_git() {
|
|
|
|
git config --global user.email "travis@travis-ci.org"
|
|
|
|
git config --global user.name "Travis CI"
|
|
|
|
}
|
|
|
|
|
2019-06-17 02:04:42 -07:00
|
|
|
setup_git
|
2019-06-17 02:17:23 -07:00
|
|
|
commit_black
|
|
|
|
commit_pylint
|
|
|
|
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
exit 0
|
2019-06-17 02:19:22 -07:00
|
|
|
fi
|