chore(bot): improve layout of travis bot commits (#1347)

This commit is contained in:
Francesco Borzì
2019-01-23 22:54:45 +00:00
committed by GitHub
parent c62fec7f77
commit 60561d6f9f
+2 -2
View File
@@ -17,7 +17,7 @@ git:
depth: 1
before_install:
- git config user.email "[email protected]" && git config user.name "Travis CI"
- git config user.email "[email protected]" && git config user.name "AzerothCoreBot"
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then cd bin/; fi
# import pending sql
- if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then bash acore-db-pendings; fi
@@ -25,7 +25,7 @@ before_install:
# push changes to git if any
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git fetch --unshallow; fi
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git checkout $TRAVIS_BRANCH; fi
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git add -A . && git diff --cached --quiet || git commit -am "Importing pending sql" && git push https://[email protected]/$TRAVIS_REPO_SLUG.git $TRAVIS_BRANCH; fi
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git add -A . && git diff --cached --quiet || git commit -am "Import pending SQL update file" && git push https://[email protected]/$TRAVIS_REPO_SLUG.git $TRAVIS_BRANCH; fi
install:
# install OS deps (apt-get)