1
0
Fork 1
mirror of https://github.com/thatmattlove/hyperglass.git synced 2026-01-17 08:48:05 +00:00
thatmattlove-hyperglass/tests/ci_git.sh
2019-06-17 02:19:22 -07:00

24 lines
431 B
Bash
Executable file

#!/bin/sh
commit_black() {
git add hyperglass/ *.py
git commit --message "Black Formatting - travis $TRAVIS_BUILD_NUMBER"
}
commit_pylint() {
git add pylint.svg
git commit --message "Pylint Badge - travis $TRAVIS_BUILD_NUMBER"
}
setup_git() {
git config --global user.email "travis@travis-ci.org"
git config --global user.name "Travis CI"
}
setup_git
commit_black
commit_pylint
if [ $? -ne 0 ]; then
exit 0
fi