jenkins集成学习心得

一,      安装jdk 7

二,      安装jenkins

启动不成功时执行一下命令:

sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist

sudo mkdir -p /Users/Shared/Jenkins/Home

sudo chown -R daemon /Users/Shared/Jenkins

    sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist

三,      安装Xcode Plugin

进入jenkins管理页面安装插件Xcode Plugin。

四,      安装perforce Plugin

五,      在MAC端建立SSH通道(打开远程登陆)

sudo su

ssh-keygen

cat /var/root/.ssh/id_rsa.pub

生成id_rsa.pub公钥给server端

六,      SSH错误时,检测/etc/sshd_config 是否有误

七,      同意xcodebuild license

八,      执行单元测试

(1)cd /Developer/Platforms/iPhoneSimulator.platform/Developer/Tools/

(2)vi RunPlatformUnitTests

(3)找到95行,把

Warning ${LINENO} "Skipping tests; the iPhoneSimulator platform does not currently support application-hosted tests (TEST_HOST set)."

  替换为

export OTHER_TEST_FLAGS="-RegisterForSystemEvents"

RunTestsForApplication "${TEST_HOST}" "${TEST_BUNDLE_PATH}"

  (4)到https://github.com/hborders/iphonesim/下载iphonesim

  (5)运行模拟器/Users/duying/Documents/iphonesim launch /Users/duying/Documents/code/mobile/iOS/iPhone/1.2.1/build/Debug-iphonesimulator/Funshion.app

九,      执行shell脚本

  chmod +x test.sh

  ./test.sh

转载于:https://www.cnblogs.com/417460188dy/p/3217437.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值