axmol/tools/jenkins-scripts/slave-scripts/tests/ios-build.sh

8 lines
679 B
Bash
Raw Normal View History

2019-11-23 20:27:39 +08:00
#put xctool.sh into your PATH
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
2021-05-18 16:40:30 +08:00
ADXE_ROOT="$DIR"/../../../..
xcodebuild -project "$ADXE_ROOT"/build/cocos2d_tests.xcodeproj -scheme "build all tests iOS" -destination "platform=iOS Simulator,name=iPhone Retina (4-inch)" clean | xcpretty
xcodebuild -project "$ADXE_ROOT"/build/cocos2d_tests.xcodeproj -scheme "build all tests iOS" -destination "platform=iOS Simulator,name=iPhone Retina (4-inch)" build | xcpretty
2019-11-23 20:27:39 +08:00
#the following commands must not be removed
2021-05-18 16:40:30 +08:00
xcodebuild -project "$ADXE_ROOT"/build/cocos2d_tests.xcodeproj -scheme "build all tests iOS" -destination "platform=iOS Simulator,name=iPhone Retina (4-inch)" build