mirror of https://github.com/axmolengine/axmol.git
Updates Jenkins ci.
This commit is contained in:
parent
4444e3872e
commit
3adc62679f
|
@ -39,21 +39,21 @@ def autotest(type):
|
|||
#----------------autotest build and run----------------#
|
||||
def MAC_BUILD():
|
||||
def cleanProj():
|
||||
infoClean = os.system('xcodebuild -project ./build/cocos2d_samples.xcodeproj -target Test\ cpp\ Mac clean')
|
||||
infoClean = os.system('xcodebuild -project ./build/cocos2d_tests.xcodeproj -target cpp-tests\ Mac clean')
|
||||
print 'infoClean: ', infoClean
|
||||
if infoClean != 0:
|
||||
return False
|
||||
time.sleep(sleep_time)
|
||||
return True
|
||||
def buildProj():
|
||||
infoBuild = os.system('xcodebuild -project ./build/cocos2d_samples.xcodeproj -target Test\ cpp\ Mac')
|
||||
infoBuild = os.system('xcodebuild -project ./build/cocos2d_tests.xcodeproj -target cpp-tests\ Mac')
|
||||
print 'infoBuild: ', infoBuild
|
||||
if infoBuild != 0:
|
||||
return False
|
||||
time.sleep(sleep_time)
|
||||
return True
|
||||
def openProj():
|
||||
cmd = 'open ./build/build/Debug/Test\ cpp\ Mac.app'
|
||||
cmd = 'open ./build/build/Debug/cpp-tests\ Mac.app'
|
||||
print 'cmd: ', cmd
|
||||
infoOpen = os.system(cmd)
|
||||
print 'infoOpen: ', infoOpen
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#put xctool.sh into your PATH
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
COCOS2DX_ROOT="$DIR"/../..
|
||||
xcodebuild -project "$COCOS2DX_ROOT"/build/cocos2d_samples.xcodeproj -scheme "build all samples iOS" -destination "platform=iOS Simulator,name=iPhone Retina (4-inch)" clean
|
||||
xcodebuild -project "$COCOS2DX_ROOT"/build/cocos2d_samples.xcodeproj -scheme "build all samples iOS" -destination "platform=iOS Simulator,name=iPhone Retina (4-inch)" build
|
||||
xcodebuild -project "$COCOS2DX_ROOT"/build/cocos2d_tests.xcodeproj -scheme "build all tests iOS" -destination "platform=iOS Simulator,name=iPhone Retina (4-inch)" clean
|
||||
xcodebuild -project "$COCOS2DX_ROOT"/build/cocos2d_tests.xcodeproj -scheme "build all tests iOS" -destination "platform=iOS Simulator,name=iPhone Retina (4-inch)" build
|
||||
|
|
Loading…
Reference in New Issue