特拉维斯CI为Android特拉、CI、Android

2023-09-05 05:56:22 作者:奋斗赎青春

试图开始使用特拉维斯CI为我的Andr​​oid项目。首先,我设置了虚拟的项目与Android引导,并增加从广场的奥托项目的YML文件 - 修改有我的用户名和回购的名字

Trying to get started with Travis CI for my Android projects. First I set up dummy project with Android Bootstrap, and added a the yml file from square's otto project - modified to have my username and repo name.

我的生成失败,出现错误 /home/travis/build.sh:行94:机器人:找不到命令,即使平方米的项目构建罚款。

My build fails with the error "/home/travis/build.sh: line 94: android: command not found, even when square's project builds fine.

似乎该错误以指示该路径设置不正确,尽管在我.travis.yml具有这些线的

The error seems to indicate that the path isn't set properly, in spite of having these lines in my .travis.yml

在出口ANDROID_HOME =〜/生成/ f2prateek / FoodBot / Android的SDK-linux的 在出口PATH = $ {PATH}:$ {ANDROID_HOME} /工具:$ {ANDROID_HOME} /平台工具

有没有别的东西,我需要进行设置,以得到这个权利?

Is there something else I need to be setting up to get this right?

推荐答案

更新2014/05 :特拉维斯CI现在已经为Android官方支持

Update 2014/05: Travis CI now has official support for Android.

http://docs.travis-ci.com/user/languages​​/android /

下面的解决方法不是必需的了,除非你想用它在 非Android的虚拟机。

The workarounds below are not required anymore, unless you want to use it on a non-Android VM.

这个问题是最有可能与特拉维斯CI切换到64位虚拟机的事实。您需要安装IA32-库为Android在64位环境中运行。这目前仍与实现的:

The issue is most likely with the fact that Travis CI switched over to 64-bit virtual machines. You need to install ia32-libs for Android to run in a 64-bit environment. This can currently be achieved with:

sudo apt-get install -qq --force-yes libgd2-xpm ia32-libs ia32-libs-multiarch

我写了一篇博客上获得Android的基础上特拉维斯,覆盖这个问题,以及其他细节正在运行:的 http://rkistner.github.com/android/2013/02/05/android-builds-on-travis-ci/

特拉维斯可能会在未来支持的Andr​​oid专用的虚拟机,这将简化配置。请按照问题#56 谈话就这一问题和讨论的更新在Android专用的虚拟机。

Travis might support Android-specific virtual machines in the future, which will simplify the configuration. Follow the conversation on issue #56 for updates on this issue and discussions on the Android-specific VM.