forked from mirrors/thatmattlove-hyperglass
overwritting git commit failure exit code
This commit is contained in:
parent
5f1655a791
commit
3530100323
2 changed files with 15 additions and 4 deletions
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
## Documentation
|
||||
|
||||
Documentation can be found [here](https://hyperglass.readthedocs.io), or in the `docs/` directory.
|
||||
[Documentation can be found here](https://hyperglass.readthedocs.io).
|
||||
|
||||
## Preview
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,23 @@
|
|||
#!/bin/sh
|
||||
|
||||
setup_git() {
|
||||
git config --global user.email "travis@travis-ci.org"
|
||||
git config --global user.name "Travis CI"
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue