编译持续集成系统哈德森Android项目?项目、哈德森、系统、Android

2023-09-05 07:42:10 作者:拿什么整死你,我的作业

我设置了​​一个持续集成系统的哈德森,它只是惊人的。 我有一个SVN仓库,并集成了一个post-commit钩子,通知哈德森当有人提交到存储库。这部分工作出色。

I'm setting up a Continuous Integrations System with Hudson and it's just amazing. I got a SVN repository and integrated a post-commit hook that notifies Hudson when someone commits to the repository. This part is working splendid.

总的想法是,如果项目失败,与单元测试或其他任何东西,它应该告诉合作者(我用一个简单的电子邮件通知ATM)。但是,如果它成功,我希望它来编译该项目,并建立要么是无符号或签署的 .apk文件文件。

The general idea is, that if the project fails, with unit-tests or anything else, it should tell the collaborator(i'm using a simple e-mail notifier atm). But if it successes I want it to compile the project and build either an unsigned or a signed .apk file.

什么是做到这一点的最简单和最聪明的方法是什么? 我读过您可以使用 Shell命令打造的 .apk文件,但我似乎无法弄清楚如何工作的?谁能告诉我怎样才能做到这一点,或者我应该去另一种解决方案?

What's the easiest or smartest way to do this? I've read you can use a Shell Command to build the .apk but I can't seem to figure out how this works? Can anyone tell me how I can do this or should I go for another solution?

在此先感谢

芬兰人拉森

推荐答案

有一个的对詹金斯维基指南关于建立Android应用程序与哈德森和詹金斯,包括建设和运行测试程序,获得code覆盖面和静态分析统计。 从本质上讲,你可以使用Ant支持内置来构建应用程序。

There is a guide on the Jenkins wiki about building Android apps with Hudson or Jenkins, including building and running a test app, obtaining code coverage and static analysis stats. Essentially you can use the Ant support built-in to build your application.

如果你想运行自动测试,你也可以使用 Android模拟器插件。

If you want to run automated tests, you can also use the Android Emulator Plugin.

因为你是刚刚开始接触哈德森,我会说,现在是一个好时机升级到詹金斯。 ;)

Since you're just starting out with Hudson, I would say now is a good time to upgrade to Jenkins. ;)