Skip to content

Commit

Permalink
Fix travis build fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
James Chen committed Feb 27, 2014
1 parent c3bcfff commit 7e9a120
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: cpp
env:
matrix:
- GEN_COCOS_FILES=YES
- PLATFORM=linux DEBUG=1 CC_COMPILER=gcc CXX_COMPILER=g++
- PLATFORM=linux DEBUG=1 CC_COMPILER=clang CXX_COMPILER=clang++
# Since switching to C++11 only the ARM version of the nactive client
Expand Down
16 changes: 8 additions & 8 deletions tools/travis-scripts/run-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,26 @@ if [ "$GEN_COCOS_FILES"x = "YES"x ]; then
fi
if [ -z "${GH_EMAIL}" ]; then
echo "GH_EMAIL not set"
exit 0
exit 1
fi
if [ -z "${GH_USER}" ]; then
echo "GH_USER not set"
exit 0
exit 1
fi
if [ -z "${GH_PASSWORD}" ]; then
echo "GH_USER not set"
exit 0
exit 1
fi

cd $COCOS2DX_ROOT/tools/travis-scripts
./generate-cocosfiles.sh
# ./generate-cocosfiles.sh
elif [ "$PLATFORM"x = "android"x ]; then
export NDK_ROOT=$HOME/bin/android-ndk

# Generate binding glue codes
echo "Generating bindings glue codes ..."
cd $COCOS2DX_ROOT/tools/travis-scripts
./generate-cocosfiles.sh
# ./generate-cocosfiles.sh

cd $COCOS2DX_ROOT

Expand All @@ -66,7 +66,7 @@ elif [ "$PLATFORM"x = "linux"x ]; then
# Generate binding glue codes
echo "Generating bindings glue codes ..."
cd $COCOS2DX_ROOT/tools/travis-scripts
./generate-cocosfiles.sh
# ./generate-cocosfiles.sh

echo "Building cocos2d-x"
cd $COCOS2DX_ROOT/build
Expand All @@ -79,7 +79,7 @@ elif [ "$PLATFORM"x = "emscripten"x ]; then
# Generate binding glue codes
echo "Generating bindings glue codes ..."
cd $COCOS2DX_ROOT/tools/travis-scripts
./generate-cocosfiles.sh
# ./generate-cocosfiles.sh

cd $COCOS2DX_ROOT/build
export PYTHON=/usr/bin/python
Expand All @@ -88,7 +88,7 @@ elif [ "$PLATFORM"x = "emscripten"x ]; then
EMCC_DEBUG=1 make PLATFORM=emscripten -j 8
elif [ "$PLATFORM"x = "ios"x ]; then
cd $COCOS2DX_ROOT/tools/travis-scripts
./generate-cocosfiles.sh
# ./generate-cocosfiles.sh

cd $COCOS2DX_ROOT
xctool/xctool.sh -project samples/Cpp/HelloCpp/proj.ios/HelloCpp.xcodeproj -scheme HelloCpp test
Expand Down

0 comments on commit 7e9a120

Please sign in to comment.