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.ymlinstructions:before_installsection runsdocker buildto prepare the environmentscriptsection is the actual test, building the APK withdocker runFor example editing
pythonforandroid/recipes/hostpython2/__init__.pyandintroducing an error e.g. replace
-j5with--wrong-flagwould make it fail.Things to improve:
.travis.ymlreadability