From d779aaa967b1eef7a4fbe0e52c0952e950a40589 Mon Sep 17 00:00:00 2001 From: James Chen Date: Tue, 11 Feb 2014 14:12:13 +0800 Subject: [PATCH] Defines NDK_ROOT and PYTHON_BIN in top level. --- tools/travis-scripts/run-script.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/travis-scripts/run-script.sh b/tools/travis-scripts/run-script.sh index 534bfcfc0f..af628c3160 100755 --- a/tools/travis-scripts/run-script.sh +++ b/tools/travis-scripts/run-script.sh @@ -5,6 +5,9 @@ set -e DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" COCOS2DX_ROOT="$DIR"/../.. +export NDK_ROOT=$HOME/bin/android-ndk +export PYTHON_BIN=/usr/bin/python + if [ "$GEN_JSB"x = "YES"x ]; then # Re-generation of the javascript bindings can perform push of the new # version back to github. We don't do this for pull requests, or if @@ -26,8 +29,7 @@ if [ "$GEN_JSB"x = "YES"x ]; then echo "GH_USER not set" exit 0 fi - export NDK_ROOT=$HOME/bin/android-ndk - export PYTHON_BIN=/usr/bin/python + cd $COCOS2DX_ROOT/tools/travis-scripts ./generate-jsbindings.sh elif [ "$PLATFORM"x = "android"x ]; then