mirror of https://github.com/axmolengine/axmol.git
[ci] Updates travis scripts.
This commit is contained in:
parent
f55dd3d222
commit
bb190fe78a
|
@ -23,6 +23,7 @@ ELAPSEDSECS=`date +%s`
|
|||
COCOS_BRANCH="update_lua_bindings_$ELAPSEDSECS"
|
||||
COCOS_ROBOT_REMOTE="https://${GH_USER}:${GH_PASSWORD}@github.com/${GH_USER}/cocos2d-x.git"
|
||||
PULL_REQUEST_REPO="https://api.github.com/repos/cocos2d/cocos2d-x/pulls"
|
||||
FETCH_REMOTE_BRANCH="develop"
|
||||
|
||||
# Exit on error
|
||||
set -e
|
||||
|
@ -88,12 +89,14 @@ pushd "$PROJECT_ROOT"
|
|||
git status
|
||||
|
||||
echo
|
||||
echo Comparing with HEAD ...
|
||||
echo Comparing with origin HEAD ...
|
||||
echo
|
||||
|
||||
git fetch origin ${FETCH_REMOTE_BRANCH}
|
||||
|
||||
# Don't exit on non-zero return value
|
||||
set +e
|
||||
git diff --stat --exit-code
|
||||
git diff FETCH_HEAD --stat --exit-code
|
||||
|
||||
DIFF_RETVAL=$?
|
||||
if [ $DIFF_RETVAL -eq 0 ]
|
||||
|
|
|
@ -6,6 +6,7 @@ PROJECT_ROOT="$DIR"/../..
|
|||
COMMITTAG="[AUTO][ci skip]: updating cocos2dx_files.json"
|
||||
PUSH_REPO="https://api.github.com/repos/cocos2d/cocos2d-x/pulls"
|
||||
OUTPUT_FILE_PATH="${PROJECT_ROOT}/templates/cocos2dx_files.json"
|
||||
FETCH_REMOTE_BRANCH="develop"
|
||||
|
||||
# Exit on error
|
||||
set -e
|
||||
|
@ -51,12 +52,14 @@ pushd "$PROJECT_ROOT"
|
|||
git status
|
||||
|
||||
echo
|
||||
echo Comparing with HEAD ...
|
||||
echo Comparing with origin HEAD ...
|
||||
echo
|
||||
|
||||
git fetch origin ${FETCH_REMOTE_BRANCH}
|
||||
|
||||
# Don't exit on non-zero return value
|
||||
set +e
|
||||
git diff --stat --exit-code
|
||||
git diff FETCH_HEAD --stat --exit-code
|
||||
|
||||
DIFF_RETVAL=$?
|
||||
if [ $DIFF_RETVAL -eq 0 ]
|
||||
|
|
Loading…
Reference in New Issue