1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-15 11:20:32 +01:00
Commit Graph

69 Commits

Author SHA1 Message Date
Hans-Christoph Steiner
a4615b1def buildserver: handle loops in bash, not ruby, to save memory
Apparently, ruby is quite a memory hog when it forks.  I've been getting
errors like this with ./makebuildserver:

Errno::ENOMEM - script[add_btools_17] (android-sdk::default line 72) had an
  error: Errno::ENOMEM: Cannot allocate memory - fork(2)

So instead of looping in ruby and forking for each loop, handle the looping
in the bash script, so ruby is just calling a single bash script.
2016-06-14 16:34:13 +02:00
Hans-Christoph Steiner
714b3b9ff6 makebuildserver: use original names for downloaded SDK components
It will make it a lot easier to manage the cache if we use the original
file names, which often include the file version.  This also changes the
download process to be resumable if there is a partial file in the cache,
and switches from calling wget on the command line to using the python libs
'requests' and 'clint' to provide a similar experience.  While its not so
important for this particular bit of code to use those libraries, I think
those two will allow us to provide a better user experience throughout the
whole of fdroidserver.

In this case, it is already doing special tricks fetching the file size
from the server before trying to download it.  I suppose this code could
instead check if the file exists, and if so, check the hash sum.  I think
that would be slower for most people since checking the hash on large files
takes a noticeable about of time, while a HTTP HEAD request is pretty tiny.
2016-06-14 14:21:59 +02:00
Daniel Martí
fa9aa5d10f Do not install extra-android-support in the VM
It's m2repository that is actually used by maven-based builds. This one
is pretty much useless.
2016-05-27 14:08:57 +01:00
Daniel Martí
d5d22dbc99 Update android sdk version
Install version 25 now. Also use the smaller tools zip. While at it,
also remove the tools re-install - it's not worth it, as long as we keep
the initial tools zip up to date.
2016-05-27 14:08:57 +01:00
Daniel Martí
ec9087d057 Add and switch to build-tools 23.0.3
Also bump to the CI image which contains it.
2016-04-05 10:49:30 +01:00
Daniel Martí
882cfe3912 Install build-tools from the cache too 2015-11-20 14:08:54 -08:00
Daniel Martí
7842b08f40 Download platforms via makebuildserver 2015-11-20 12:21:31 -08:00
Daniel Martí
66e82cb077 Bump build-tools to 23.0.2 2015-11-05 11:56:13 +01:00
Daniel Martí
82624cd7ca Bump sdk to 24.4.1 2015-10-24 19:02:39 +02:00
Daniel Martí
41443edd55 Bump build-tools 2015-09-05 23:02:03 -04:00
Daniel Martí
d2ccea8246 Update buildserver for android-23 2015-08-18 13:39:00 -07:00
Daniel Martí
e55d1450d1 Update the Android SDK to 24.3.3 2015-06-19 21:17:43 +02:00
Daniel Martí
e608975f78 Bump build-tools to 22.0.1 2015-06-18 16:56:56 +02:00
Daniel Martí
66487272cd Update build tools to 22.0.0 2015-03-21 23:42:31 +01:00
Daniel Martí
92fdcd3e6a Update sdk to 24.1.2 2015-03-21 23:41:08 +01:00
Daniel Martí
4c0ee6ddce Add android-22 target 2015-03-21 23:28:09 +01:00
Daniel Martí
16601a0be3 Bump build-tools again to 21.1.2 2014-12-12 12:57:12 +01:00
Daniel Martí
aaf36f654d Update build-tools to 21.1.1 2014-12-12 12:40:09 +01:00
Daniel Martí
e10b2dd382 Update sdk to 24.0.1 2014-12-12 12:39:04 +01:00
Daniel Martí
57efa16f3f Bump build-tools to 21.0.2 2014-10-22 15:01:01 +02:00
Daniel Martí
e3856882b7 Add android-21 (5.0) target sdk to the buildserver 2014-10-18 11:55:06 +02:00
Daniel Martí
6767c3f987 Revert "Add android-L target to the buildserver"
This reverts commit 7809ef419f.

android-L is a preview, we want to add android-20 when it comes out.
2014-08-07 10:29:44 +02:00
Daniel Martí
7809ef419f Add android-L target to the buildserver 2014-08-03 09:51:19 +02:00
Daniel Martí
4e0e830038 Add android-20 to the SDK 2014-07-03 22:30:30 +02:00
Daniel Martí
ebfce778bc Update the SDK to 23.0.2, supposedly fixing all issues 2014-07-03 15:36:43 +02:00
Daniel Martí
70d77a1cce Set up SDK and NDK env vars from python
No need to make the buildserver do it
2014-07-01 21:03:50 +02:00
Daniel Martí
348c6a1085 Update the SDK to version 23.0.0 2014-06-30 17:03:26 +02:00
Daniel Martí
cbdcdd1e78 Update build-tools to 20.0.0 2014-06-30 17:03:16 +02:00
Daniel Martí
a50e6dbfbd Update sdk and build-tools 2014-06-11 22:48:12 +02:00
Daniel Martí
295cddcddb Add android targets 5, 6 and 9
They are nice to have, and will be needed to build support-v4 from source
2014-05-21 11:45:16 +02:00
Daniel Martí
426d85d0b8 Bump build-tools version 2014-03-07 15:38:24 +01:00
Daniel Martí
858f89e3ac Update build-tools to 19.0.2 2014-02-23 12:21:28 +01:00
Daniel Martí
607736f85d Remove google apis, they are deprecated and broken 2014-01-12 11:57:47 +01:00
Daniel Martí
ff01aa75cd Add build-tools to PATH 2014-01-12 11:57:23 +01:00
Daniel Martí
087cd6d135 Update to build-tools 19.0.1 2013-12-22 13:24:40 +01:00
Ciaran Gultnieks
0876c52e55 Revert "Switch to build-tools 19.0.0" - buggy build tools
This reverts commit a81aebb236.
2013-11-13 14:54:38 +00:00
Daniel Martí
a81aebb236 Switch to build-tools 19.0.0 2013-11-04 16:09:45 +01:00
Daniel Martí
7f43797a64 Add android-19 platform 2013-11-02 20:35:45 +01:00
Daniel Martí
4db24c43f2 Android sdk from 22.2.1 to 22.3 2013-11-02 20:35:03 +01:00
Daniel Martí
23dc78da44 Also install platform-tools 2013-10-20 13:42:58 +02:00
Daniel Martí
efcf850247 Update many android tools
* Gradle from 1.7 to 1.8
* Android SDK from 21.0.1 to 22.2.1
* SDK Build Tools from 18.0.1 to 18.1.1
* Added legacy toolchains to NDK r9
2013-10-17 15:29:52 +02:00
Ciaran Gultnieks
01ab262a9a Revert "Fix b315968b (at least to the extent that it's now possible to make a buildserver again)"
This reverts commit c74bbdf5dc.
2013-10-16 19:32:38 +01:00
Ciaran Gultnieks
c74bbdf5dc Fix b315968b (at least to the extent that it's now possible to make a buildserver again) 2013-10-16 17:28:13 +01:00
Daniel Martí
1764173084 Don't add sdk support lib dir as maven repo 2013-10-16 09:36:42 +02:00
Daniel Martí
b315968bea Try to add maven support repo and ndk variables to recipes 2013-10-10 16:30:11 +02:00
Ciaran Gultnieks
0658a9b8ac Get non-interactive bash env right 2013-08-29 21:06:18 +01:00
Ciaran Gultnieks
153c0c6f8f Define ANDROID_HOME on buildserver 2013-08-29 18:25:26 +01:00
Ciaran Gultnieks
4b97c0a470 Add extra-android-m2repository to buildserver 2013-08-22 09:54:01 +01:00
Ciaran Gultnieks
8cf3b9ec5d Add build tools 18.0.1 2013-08-08 11:43:15 +01:00
Ciaran Gultnieks
a2e81658ef Add sdk android-18 2013-08-08 11:11:48 +01:00