1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-04 16:30:12 +02:00
Commit Graph

5189 Commits

Author SHA1 Message Date
Marcus Hoffmann
9889a98dea
build: improve gradle experience
This expands the gradle wrapper shell script used by the buildserver for
usage outside the buildserver environment. It also allows downloading
whitelisted versions of gradle if they are not yet deployed to the
buildserver by simply upsating the copy of fdroidserver (in contrast to
having to reprovision the whole buildserver).

We first move the buildserver/gradle shell script to the repo root
as gradlew-fdroid, as it's an fdroid specific gradle wrapper.
We also now sync it inside the build VM before each build.

We then add a list of whitelisted gradle distributions taken from the
makebuildserver script.

The script additionally now reads two env vars which tell it where to
expect installed versions of gradle and where it might store downloaded
gradle .zip files. Both of those are configurable from config.py. As the
first should normally just be a subdir of the second it's not exposed in
the example config.py but only used by the buildserver config.py.

Default config now uses this internal gradle wrapper but a path to a
custom wrapper or specific gradle distribution can still be set from
config.py.

Closes fdroid/fdroidserver#98
Ref: fdroid/fdroidserver#370
2018-07-11 11:49:46 +02:00
Marcus Hoffmann
68cb81f38d
gitignore: add .idea dir 2018-07-09 17:59:32 +02:00
Hans-Christoph Steiner
4f7a992214 Merge branch 'fix_notarball' into 'master'
build: propagate --no-tarball option to buildserver

Closes #510

See merge request fdroid/fdroidserver!528
2018-07-09 15:01:09 +00:00
Marcus Hoffmann
a728582077
build: propagate --no-tarball option to buildserver
Closes #510
2018-07-09 14:48:59 +02:00
Marcus
a10957942f Merge branch 'ndkr17b_fix2' into 'master'
ndk17: add to extract whitelist

See merge request fdroid/fdroidserver!526
2018-07-04 12:33:18 +00:00
Marcus Hoffmann
a1ea29c86b
ndk17: add to extract whitelist 2018-07-04 14:30:15 +02:00
Michael Pöhn
b3e3aa6e0e Merge branch '509-Error-publishing-an-apk' into 'master'
Resolve "Error publishing an apk"

See merge request fdroid/fdroidserver!525
2018-07-02 23:04:12 +00:00
Michael Pöhn
5726432159 fix ignoring developer supplied reference apks for reproducible builds when publishing 2018-07-02 15:28:22 +02:00
Marcus
1ee90d05e2 Merge branch 'ndk17b' into 'master'
Ndk17b

See merge request fdroid/fdroidserver!524
2018-06-27 14:47:51 +00:00
Marcus Hoffmann
b3bfb3ac21
examples/config.py: add ndk r17b entry 2018-06-27 16:46:38 +02:00
Marcus Hoffmann
2757bd2093
buildserver config: add ndk r17b entry 2018-06-27 16:45:42 +02:00
Marcus
2f4e5dd868 Merge branch 'makebuildserver_upgrades' into 'master'
Makebuildserver upgrades

Closes #506

See merge request fdroid/fdroidserver!523
2018-06-26 13:50:57 +00:00
Marcus Hoffmann
9ab7adcfbb
makebuildserver: upgrade ndk r17 to r17b 2018-06-26 15:23:48 +02:00
Marcus Hoffmann
297a1eb542
makebuildserver: add gradle 4.8.1
Closes fdroid/fdroidserver#506
2018-06-26 15:23:43 +02:00
Marcus Hoffmann
50660e44fc
makebuildserver: add build-tools_r28 2018-06-26 15:19:17 +02:00
Marcus Hoffmann
2a2058c2f9
makebuildserver: add platform-28 2018-06-26 15:05:12 +02:00
Hans-Christoph Steiner
abb3a0bfb6 Merge branch 'nonstandardwebroot-warning' into 'master'
add extra explanation/warning to nonstandardwebroot in examples/config.py

See merge request fdroid/fdroidserver!522
2018-06-26 09:35:58 +00:00
Michael Pöhn
931ec12b82 add extra explanation/warning to nonstandardwebroot in examples/config.py 2018-06-26 11:31:52 +02:00
Michael Pöhn
1cca767a6b Merge branch 'master' into 'master'
1.0 polish

See merge request fdroid/fdroidserver!521
2018-06-25 19:58:12 +00:00
Hans-Christoph Steiner
d20e8613fe build: only test for all Android SDK paths where it is needed
Now that androguard can be used, the android-sdk is no longer required for
most operations.
2018-06-25 10:52:12 +02:00
Hans-Christoph Steiner
669401640a tests: only run gpgsign tests if gpg is present and executable
This allows the full test suite to run in Debian/Ubuntu autopkgtest with
only the Depends: installed, and nothing from Recommends:.
2018-06-25 10:52:12 +02:00
Hans-Christoph Steiner
c3b361c91b remove 'from distutils.util import strtobool' dependency
Most of distutils is being removed from the Python standard library, and
this is totally not needed here.
2018-06-25 10:52:12 +02:00
Hans-Christoph Steiner
d28dd3f64d bump to 1.1a 2018-06-25 10:52:07 +02:00
Michael Pöhn
b80154da86 Merge branch 'fix-left-out-refactoring-in-build-py' into 'master'
fix left out refactoring in build.py

See merge request fdroid/fdroidserver!520
2018-06-23 21:51:42 +00:00
Michael Pöhn
12af173821 fix left out refactoring in build.py 2018-06-23 23:26:42 +02:00
Hans-Christoph Steiner
3e62b29e96 Merge branch 'master' into 'master'
two fixes and two new flags for `fdroid nightly

Closes #288

See merge request fdroid/fdroidserver!519
2018-06-20 14:32:02 +00:00
Hans-Christoph Steiner
1d6c462605 Merge branch '495-publish-build-logs-with-rsync' into 'master'
publish build logs with rsync

See merge request fdroid/fdroidserver!515
2018-06-19 13:44:09 +00:00
Hans-Christoph Steiner
a736a37282 update: let it work without JDK, only JRE and apksigner 2018-06-19 15:40:48 +02:00
Hans-Christoph Steiner
8f2ee4bd1d run 'zipalign' using standard flags used by Gradle Android Plugin
Nice find by @equeim!  -p was added in build-tools-23.0.0

https://developer.android.com/studio/publish/app-signing#sign-manually

closes #288
2018-06-19 15:40:48 +02:00
Hans-Christoph Steiner
deccd013c9 nightly: --no-deploy option to skip rsyncing repo 2018-06-19 15:40:48 +02:00
Hans-Christoph Steiner
881074b2aa nightly: --keep-private-keys option to allow further processing
This makes it possible to run `fdroid server update` after `fdroid nightly`
has completed.  It also actually deletes all private key files.
2018-06-19 15:40:48 +02:00
Hans-Christoph Steiner
672df07238 Merge branch 'conform-vmtools-coding-style' into 'master'
refactor vmtools logging, pythonic binary lookup

See merge request fdroid/fdroidserver!518
2018-06-19 13:22:28 +00:00
Michael Pöhn
752f6a4ba2 applied review suggestions for deploying (build) logs 2018-06-19 15:18:13 +02:00
Michael Pöhn
a318a637a5 vmtools: use pythonic way to check for installed binaries 2018-06-19 14:47:03 +02:00
Michael Pöhn
ebe71472d3 use default logging style in vmtools 2018-06-19 14:37:18 +02:00
Michael Pöhn
763768989b add additional infos about publish_build_logs to example/config.py 2018-06-19 12:39:37 +02:00
Michael Pöhn
88e64df3ef deploying build logs to server after each individual build run 2018-06-19 12:24:52 +02:00
Michael Pöhn
4c53c71fcf added helper function for uploading build logs with rsync 2018-06-19 12:24:52 +02:00
Michael Pöhn
af980fbe7e added tests for update_serverwebroot 2018-06-19 12:24:52 +02:00
Michael Pöhn
429bc21da7 make common.TestCase run independant of cwd 2018-06-19 12:24:52 +02:00
Marcus
26996b0128 Merge branch 'gradle-4.8' into 'master'
makebuildserver: add Gradle 4.8

See merge request fdroid/fdroidserver!517
2018-06-14 17:55:48 +00:00
relan
396ef24a4d makebuildserver: add Gradle 4.8 2018-06-14 20:37:54 +03:00
Marcus
4b342c7cb5 Merge branch '498' into 'master'
scanner: whitelist www.jitpack.io

Closes #498

See merge request fdroid/fdroidserver!516
2018-06-11 10:55:39 +00:00
Marcus Hoffmann
3a6942ca77
scanner: whitelist www.jitpack.io
Only the non-www version was recognized so far.

Closes #498
2018-06-11 12:40:55 +02:00
Marcus
a65bc96f51 Merge branch '496-makebuildserver-does-not-handle-basebox-with-multiple-architectures-correctly' into 'master'
Resolve "makebuildserver does not handle basebox with multiple architectures correctly"

Closes #496

See merge request fdroid/fdroidserver!513
2018-06-05 07:30:51 +00:00
Michael Pöhn
6266c33027 makebuildserver: fix lookup logic for needs_mutate 2018-06-05 00:03:17 +02:00
Hans-Christoph Steiner
e8bad73ae4 Merge branch 'master' into 'master'
modernize PEP8 checks to prepare for Python 3.7

See merge request fdroid/fdroidserver!512
2018-05-29 12:14:15 +00:00
Hans-Christoph Steiner
ff90c0246e fix PEP8 W605 invalid escape sequence
Python 3.7 will get a lot stricter with escape sequences.  They must be
valid.

* https://lintlyci.github.io/Flake8Rules/rules/W605.html
* https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
2018-05-29 13:51:47 +02:00
Hans-Christoph Steiner
e6d5260c3c fix PEP8: W504 line break after binary operator 2018-05-29 12:31:56 +02:00
Hans-Christoph Steiner
8c4f75e05f pre-commit hook: use most compatible grep flags
The minimal test suite runs on Alpine use busybox grep, and BSD grep also
often has different flags.
2018-05-29 11:28:08 +02:00