Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis build failing on Android #3

Open
tlenclos opened this issue Jun 17, 2015 · 3 comments
Open

Travis build failing on Android #3

tlenclos opened this issue Jun 17, 2015 · 3 comments
Assignees
Labels

Comments

@tlenclos
Copy link

It seems that the android bin is not in the path https://travis-ci.org/tlenclos/PhotoTrip/jobs/66371647

Any idea ?

@KtorZ
Copy link
Contributor

KtorZ commented Jun 17, 2015

Yep. It's because of the "cd PhotoTrip" or, more exactly, because I have been a bit lazy on where to put the android sdk. The script assumes and foresees that the sdk will be present at the root of the project which is wrong when we change the directory right before the installation of the sdk.

I'll fix the problem a bit later, for now, replace the related section in your travis file and it should work :

before_install:
    - export ANDROID_HOME=$PWD/PhotoTrip/android-sdk-macosx
    - export ANDROID_SDK=$ANDROID_HOME
    - export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
    - cd PhotoTrip

Thanks for the report by the by :)

@KtorZ KtorZ added the bug label Jun 17, 2015
@KtorZ KtorZ self-assigned this Jun 17, 2015
@tlenclos
Copy link
Author

Seems almost ok for Android,

Calabash tests are running on iOS, but for android it seems to hang
https://travis-ci.org/tlenclos/PhotoTrip/builds/67160636.

@KtorZ
Copy link
Contributor

KtorZ commented Jun 17, 2015

Hey, first of all, it seems that you didn't update your project with the new gulpfiles. It corrects some important issues with the runner.
On the other hand ... android is.. well... android :/ I am facing a lot of trouble managing the emulator with travis. Sometimes it does not boot (nobody knows why), some other times, it does not unlock or, more exactly, it relocks the screen which prevent calabash from running the test. It is also likely to not answer to calabash queries (rarely).
This is why, for the moment, I allow failure on Android until I find a better way (if any exist?) to communicate with the emulator. Besides, I am currently looking at how to set up GenyMotion in the integrated environment which will speed up a bit the process for android. Things are not easy; GenyMotion is running in it's own VM (a VM in a VM for travis, VMception!) ... As I don't know exactly what kind of virtualisation is used by Travis, I don't know if it's even possible to get another VM to run inside the existing one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants