diff --git a/tools/travis-scripts/before-install.sh b/tools/travis-scripts/before-install.sh index 4a03013c0a..0a33175825 100755 --- a/tools/travis-scripts/before-install.sh +++ b/tools/travis-scripts/before-install.sh @@ -72,6 +72,10 @@ elif [ "$PLATFORM"x = "emscripten"x ]; then install_android_ndk elif [ "$PLATFORM"x = "mac-ios"x ]; then + if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then + exit 0 + fi + if [ "$PUSH_TO_MAC"x = "YES"x ]; then cd $COCOS2DX_ROOT git config user.email ${GH_EMAIL_MAC} diff --git a/tools/travis-scripts/run-script.sh b/tools/travis-scripts/run-script.sh index 0e84e3f0a2..7bf326dc33 100755 --- a/tools/travis-scripts/run-script.sh +++ b/tools/travis-scripts/run-script.sh @@ -113,6 +113,10 @@ elif [ "$PLATFORM"x = "emscripten"x ]; then export LLVM_ROOT=$LLVM EMCC_DEBUG=1 make PLATFORM=emscripten -j 8 elif [ "$PLATFORM"x = "mac-ios"x ]; then + if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then + exit 0 + fi + if [ "$PUSH_TO_MAC"x != "YES"x ]; then cd $COCOS2DX_ROOT/tools/travis-scripts ./generate-bindings.sh