Commit graph

777 commits

Author SHA1 Message Date
Andre Miras
586152c6ce Exits with error code on build exception, fixes #674 2019-04-17 22:25:30 +02:00
Andre Miras
4183428daa
Merge pull request #846 from pax0r/uses-library
Support p4a uses-library argument
2019-03-29 22:46:45 +01:00
Andre Miras
dfd2ceb324
Merge pull request #843 from AndreMiras/feature/remove_extra_log_env
Removes extra log_env() call
2019-03-17 22:32:22 +01:00
Andre Miras
33854f82a3
Merge pull request #835 from mkg20001/fix-release-unsigned
fix: drop release-unsigned from release output path
2019-03-17 00:03:18 +01:00
Gabriel Pettier
06a964dbe4
Merge pull request #856 from Draqun/master
Fix for bug when logcat value which cannot be decode to utf-8
2019-03-13 22:52:37 +01:00
Damian Giebas
2b09e1a0bb Fix for bug when logcat value which cannot be decode to utf-8 2019-03-13 22:36:36 +01:00
Mathieu Virbel
1edbb7e0e5
Merge pull request #855 from AndreMiras/feature/change_default_log_level_to_2
Changes default log level to debug (2)
2019-03-12 22:56:20 +01:00
Andre Miras
5cde0b0f92 Changes default log level to debug (2)
Helps with troubleshooting and error reporting.
Also closes #824
2019-03-12 20:04:13 +01:00
Andre Miras
4c2152b36e
Merge pull request #853 from AndreMiras/feature/ticket812_fix_AttributeError_translate_target
Handles unknown command/target error gracefully, closes #812
2019-03-12 19:47:07 +01:00
Andre Miras
831d85a5e0 Handles unknown command/target error gracefully, closes #812
Running `buildozer unknown_command` should show a meaningful error and
exit. Fixes regression introduced in 4936d31 and adds unit tests.

Also updates other tests `assert` keyword rather than `self.assert*` in
order to keep style consistent.

Last, minor `Dockerfile` documentation update as per recent @tshirtman
feedback.
2019-03-12 19:31:46 +01:00
Andre Miras
2b4046145f
Merge pull request #852 from AndreMiras/feature/dockerfile_system_requirements_rework
Updates system requirements needed to build recipes
2019-03-12 05:03:58 +01:00
Andre Miras
eabbf2b95e Updates system requirements needed to build recipes
Makes it possible to build Android APKs directly from Docker.
Tested by building sucessfully both:

  * kivy-garden/garden.zbarcam (20190303)
  * AndreMiras/EtherollApp (20190217)

After building the image with:
```
docker build --tag=kivy/buildozer .
```
The following command was used to build the Android APK:
```
docker run \
    --volume "$HOME/.buildozer":/home/user/.buildozer \
    --volume "$(pwd)":/home/user/hostcwd \
    kivy/buildozer android debug
```

Note the system dependencies were also sorted alphabetical to ease
maintenance.
Later more dependencies can be added if needed to build a given recipe.
2019-03-10 23:11:10 +01:00
Andre Miras
4ec6040e42
Merge pull request #848 from AndreMiras/feature/docker_improvements_and_ci
Various Dockerfile improvements
2019-03-09 21:08:41 +01:00
Andre Miras
366aff9c60 Various Dockerfile improvements
- installs cutting edge version from current source
- removes outdated java version fixes
- migrates to host Python3
- verifies the image builds and run via Travis
- fixes minor linting: "E117 over-indented"
2019-03-09 20:55:48 +01:00
Bartlomiej Biernacki
37d6a55f7d Support p4a uses-library argument 2019-03-07 13:55:24 +01:00
Andre Miras
71aae60e31
Merge pull request #845 from powercat/patch-2
Removed reference to Kivy VM
closes #294, closes #296, closes #764, closes #827
2019-03-06 20:13:41 +01:00
Olivier
1d2b675729
Removed reference to Kivy VM
Removed reference to Kivy VM as it doesn't actually exist
2019-03-06 09:33:37 -08:00
Andre Miras
61182d6b8b Removes extra log_env() call
Don't print all environment variables for every single cmd() call, refs:
https://github.com/kivy/buildozer/pull/802/files#r261844323
Leaves only one `log_env()` call on command failed.
2019-03-03 00:23:28 +01:00
Andre Miras
cf880a390c
Merge pull request #839 from OptimusGREEN/master
add missing android arch to spec file
2019-02-26 21:49:31 +00:00
OptimusGREEN
cf62bf8a89 add missing arch choice to spec 2019-02-26 20:01:44 +00:00
OptimusGREEN
3e4e2266c8 Merge remote-tracking branch 'kivy-buildozer/master' 2019-02-26 19:59:59 +00:00
Maciej Krüger
6142acfa40
fix: drop release-unsigned from release output path
Guessing based on this logoutput
```
[INFO]:    # Copying APK to current directory
[INFO]:    # APK filename not found in build output. Guessing...
[INFO]:    # Found APK file: /home/data/.buildozer/android/platform/build/dists/zeronet/build/outputs/apk/release/zeronet-release-unsigned.apk
[INFO]:    # Add version number to APK
[INFO]:    # APK renamed to zeronet-0.6.5.1-release-unsigned.apk
[DEBUG]:   -> running cp /home/data/.buildozer/android/platform/build/dists/zeronet/build/outputs/apk/release/zeronet-release-unsigned.apk zeronet-0.6.5.1-release-unsigned.apk
...
IOError: [Errno 2] No such file or directory: u'/home/data/.buildozer/android/platform/build/dists/zeronet/build/outputs/apk/release-unsigned/zeronet-release-unsigned.apk'
```
2019-02-26 16:09:35 +01:00
Andre Miras
93af45c46d
Merge pull request #836 from mkg20001/feat/unzip-quiet
feat: make unzip quiet
2019-02-25 19:36:53 +00:00
Maciej Krüger
17e8e81bca
feat: make unzip quiet
I don't think the list of all files that unzip has extracted is really of any use.

At least for the NDK the amount of stuff it logs is huge.
2019-02-25 20:21:07 +01:00
Andre Miras
46bcf9575c
Merge pull request #833 from mkg20001/feat-ci-mode
Add ci_mode to toggle download progress, fixes #823
2019-02-25 14:08:25 +00:00
mkg20001
956d7b94ae
feat: add ci_mode to toggle download progress 2019-02-25 13:06:44 +01:00
Andre Miras
3b023a2d49
Merge pull request #802 from mahomahomaho/show-envs-when-run2
* - show environment to debug before run
* - dump env also when cmd failed
* - log_level symbolic/enumso
2019-02-17 18:49:11 +01:00
Andre Miras
07a6a41f04
Merge pull request #831 from AndreMiras/feature/unit_testing_log
Unit test logger
2019-02-17 18:34:29 +01:00
Andre Miras
9c137b06a7 Unit test logger
- adds test utils methods
- checks default log level
- sets log level via spec file
- checks messages printing depending on level
2019-02-17 18:10:18 +01:00
maho
8fcbd21eef - log_level symbolic/enumso 2019-02-11 18:06:08 +01:00
Alexander Taylor
afebba5f3c
Merge pull request #822 from AndreMiras/feature/refactor_auto_accept_license
refactor auto accept license
2019-02-10 13:23:39 +00:00
Andre Miras
4fb7f6e88b refactor auto accept license
Uses `yes` command and `sdkmanager --licenses` flag to automatically
accept licenses.
This is a more robust, straight forward and more conventional way of
accepting licenses automatically.
2019-02-10 00:06:19 +01:00
Alexander Taylor
197be74037
Merge pull request #821 from AndreMiras/feature/ticket813_buildozer_help_crashes
Unit tests buildozer --help command, refs #813
2019-02-08 19:56:32 +00:00
Andre Miras
fbf4a1fe2f Sets buildozer.targetname, fixes #813
Regression most likely introduced during recent refactoring, refs:
https://github.com/kivy/buildozer/pull/806
2019-02-08 18:57:23 +01:00
Andre Miras
0d22e60e2e Unit tests buildozer --help command, refs #813
This test should fail due to #813. Next commit will fix it.
2019-02-08 18:53:34 +01:00
Alexander Taylor
c88f048739
Merge pull request #817 from AndreMiras/feature/ticket806_getbooldefault_fix
Use getbooldefault() for boolean, fixes #806
2019-02-05 22:06:42 +00:00
Andre Miras
4ff4bac945 Use getbooldefault() for boolean, fixes #806 2019-02-05 22:47:53 +01:00
Alexander Taylor
205f1f62ed
Merge pull request #814 from AndreMiras/feature/issue_template_update
Update the issue template
2019-02-04 09:26:24 +00:00
Andre Miras
4983e8f08d Update the issue template
Removed Kivy and Cython version info as not really relevant for a
buildozer bug report. Added buildozer version information.
Updated support question description.
2019-02-04 10:12:09 +01:00
Mathieu Virbel
e0d29f993b update changelog 2019-02-04 01:09:25 +01:00
Mathieu Virbel
91ba12d437 Bump to 0.40.dev0 2019-02-04 01:08:35 +01:00
Mathieu Virbel
3263983d6b Bump to 0.39 2019-02-04 01:08:32 +01:00
Mathieu Virbel
742491d9d0 update changelog 2019-02-04 00:54:54 +01:00
Mathieu Virbel
c0849ba2b2 Bump to 0.39.dev0 2019-02-04 00:54:05 +01:00
Mathieu Virbel
756d6e6243 Bump to 0.38 2019-02-04 00:54:02 +01:00
Alexander Taylor
88e4a4b0c7
Merge pull request #809 from inclement/fix_readme_python2
Updated README for Python 3
2019-02-03 17:14:40 +00:00
Alexander Taylor
0efcf452d6 Updated README for python 3 2019-02-03 16:36:30 +00:00
Alexander Taylor
5db8187fd4
Merge pull request #808 from kivy/opencollective-ad
Update README.md to add opencollective
2019-02-03 16:31:23 +00:00
Mathieu Virbel
e24e571ba6 remove .rst and add .md in MANIFEST (trying to fix travis here) 2019-02-03 17:22:05 +01:00
Mathieu Virbel
7c9239dd59 update README.md to add opencollective 2019-02-03 13:50:21 +01:00