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----------------#
|
#----------------autotest build and run----------------#
|
||||||
def MAC_BUILD():
|
def MAC_BUILD():
|
||||||
def cleanProj():
|
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
|
print 'infoClean: ', infoClean
|
||||||
if infoClean != 0:
|
if infoClean != 0:
|
||||||
return False
|
return False
|
||||||
time.sleep(sleep_time)
|
time.sleep(sleep_time)
|
||||||
return True
|
return True
|
||||||
def buildProj():
|
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
|
print 'infoBuild: ', infoBuild
|
||||||
if infoBuild != 0:
|
if infoBuild != 0:
|
||||||
return False
|
return False
|
||||||
time.sleep(sleep_time)
|
time.sleep(sleep_time)
|
||||||
return True
|
return True
|
||||||
def openProj():
|
def openProj():
|
||||||
cmd = 'open ./build/build/Debug/Test\ cpp\ Mac.app'
|
cmd = 'open ./build/build/Debug/cpp-tests\ Mac.app'
|
||||||
print 'cmd: ', cmd
|
print 'cmd: ', cmd
|
||||||
infoOpen = os.system(cmd)
|
infoOpen = os.system(cmd)
|
||||||
print 'infoOpen: ', infoOpen
|
print 'infoOpen: ', infoOpen
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#put xctool.sh into your PATH
|
#put xctool.sh into your PATH
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
COCOS2DX_ROOT="$DIR"/../..
|
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_tests.xcodeproj -scheme "build all tests 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)" build
|
||||||
|
|
Loading…
Reference in New Issue