-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Continuous integration with Travis and Docker, fixes #625 #1255
Continuous integration with Travis and Docker, fixes #625 #1255
Conversation
Build is green here: https://travis-ci.org/AndreMiras/python-for-android/builds/363435368 |
This is a first step to python-for-android continuous integration. It currently only verifies that p4a creates an APK by cross compiling a limited set of recipes. How it works; On git push Travis "executes" `.travis.yml` instructions: 1. the `before_install` section runs `docker build` to prepare the environment 2. the `script` section is the actual test, building the APK with `docker run` 3. based the exit status Travis build will be green or red For example editing `pythonforandroid/recipes/hostpython2/__init__.py` and introducing an error e.g. replace `-j5` with `--wrong-flag` would make it fail. Things to improve: - improve `.travis.yml` readability - test more recipes - bring Python3 and Crystax support - speed up build/run by caching downloads - and much more
2dec324
to
2982ce5
Compare
Nice, very clear. I'll look into enabling travis for p4a, but as previously discussed won't be able to focus on it until next week. |
Any news regarding that pull request @inclement ? You look quite busy, maybe we should ping another member of the project? I feel like it's an important one because it should help to increase overall project maintainability. |
@AndreMiras I'm very sorry for not getting around to this. I completely agree that it's important, and I'll try to make some time for this in particular at the weekend. Thank you for reminding me about it. |
I've been looking into this and it seems great. I've also enabled travis CI for this repository, ready to merge it. However, am I right in understanding that running
Hopefully it's just some mistake on my part. |
Great :) |
This is a first step to python-for-android continuous integration.
It currently only verifies that p4a creates an APK by cross compiling
a limited set of recipes.
How it works; On git push Travis "executes"
.travis.yml
instructions:before_install
section runsdocker build
to prepare the environmentscript
section is the actual test, building the APK withdocker run
For example editing
pythonforandroid/recipes/hostpython2/__init__.py
andintroducing an error e.g. replace
-j5
with--wrong-flag
would make it fail.Things to improve:
.travis.yml
readability