From 35301003237eb8741243121f716e566780d2792e Mon Sep 17 00:00:00 2001 From: checktheroads Date: Mon, 17 Jun 2019 02:17:23 -0700 Subject: [PATCH] overwritting git commit failure exit code --- README.md | 2 +- tests/ci_git.sh | 17 ++++++++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 87a87b7..0b283a6 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/tests/ci_git.sh b/tests/ci_git.sh index 7dbfa62..258a597 100755 --- a/tests/ci_git.sh +++ b/tests/ci_git.sh @@ -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