Fixed travis compilation (#769)

This commit is contained in:
Yehonal
2018-01-28 19:50:01 +01:00
committed by GitHub
parent cdbfac743d
commit 19bf454e5f
3 changed files with 26 additions and 9 deletions
+6 -6
View File
@@ -11,14 +11,14 @@ git:
before_install:
- git config user.email "travis@build.bot" && git config user.name "Travis CI"
- cd bin/
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then cd bin/; fi
# import pending sql
- bash acore-db-pendings
- cd ..
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash acore-db-pendings; fi
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then cd ..; fi
# push changes to git if any
- git fetch --unshallow
- git checkout master
- git diff --quiet --exit-code --cached && git add -A . && git commit -am "Importing pending sql" && git push https://$GITHUB_API_KEY@github.com/azerothcore/azerothcore-wotlk.git master;
- 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://$GITHUB_API_KEY@github.com/$TRAVIS_REPO_SLUG.git $TRAVIS_BRANCH; fi
install:
# install OS deps (apt-get)