1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00
Commit Graph

5789 Commits

Author SHA1 Message Date
Hans-Christoph Steiner
13dbf995d5 travis: uninstall mercurial since it requires Python2 and is unused 2019-07-03 09:07:36 +02:00
Hans-Christoph Steiner
59920b9ab6 travis: upgrade Java to newest release if old enough to still use MD5
The Android SDK still requires Java8, so just force it on all macOS
versions.
2019-07-03 09:07:36 +02:00
Hans-Christoph Steiner
4881e6818b travis: purge "linux" test now that the runner was upgraded to Xenial
Xenial test runs are already well covered by GitLab-CI.
2019-07-03 09:07:36 +02:00
Hans-Christoph Steiner
a0f5ee661e tests: common.test_sign_apk requires aapt to run 2019-07-03 09:07:36 +02:00
Hans-Christoph Steiner
57b9d1e316 tests: handle when apksigner considers MD5 signatures valid 2019-07-02 22:17:06 +02:00
Hans-Christoph Steiner
a9b8687e94 gitlab-ci: the ubuntu_lts test also tests the PPA 2019-07-02 22:17:06 +02:00
Hans-Christoph Steiner
e2351f6c53 gitlab-ci: move pip job to Xenial, Trusty is over 2019-07-02 22:17:06 +02:00
Hans-Christoph Steiner
7381a94b47
gitlab-ci: disable bandit fail on standard debug keystore password 2019-06-30 22:48:52 +02:00
relan
781b55f777 checkupdates: match whole words
Match only whole words when looking for versionCode, versionName, etc. in
manifests. A real build.gradle example:

    flutterVersionCode = '1'
    flutterVersionName = '1.0'
    ...
    defaultConfig {
        versionCode 53
        versionName "2.0.3"
    }

Before this change checkupdates was erroneously getting version code and
version name from the first two lines and failing to find a new release.
2019-06-13 19:51:44 +03:00
Michael Pöhn
da0d6393bd Merge branch 'makebuildserver-dl-timeout' into 'master'
makebuildserver: explicit timeout for cache downloading

Closes #666

See merge request fdroid/fdroidserver!648
2019-05-28 11:07:21 +00:00
Michael Pöhn
06bbd3044b makebuildserver: explicit timeout for cache downloading 2019-05-28 12:07:36 +02:00
Michael Pöhn
333098b95a Merge branch 'improve-litecoin-address-validation' into 'master'
improve litecoin validation + tests

Closes #660

See merge request fdroid/fdroidserver!644
2019-05-28 09:26:52 +00:00
Michael Pöhn
66105de833 improve litecoin validation + tests 2019-05-28 11:04:43 +02:00
Michael Pöhn
92f50e5e50 Merge branch 'patch-1' into 'master'
makebuildserver: show number of files to download

See merge request fdroid/fdroidserver!647
2019-05-28 08:48:07 +00:00
rubo77
e895e981ad makebuildserver: show number of files to download 2019-05-28 00:05:27 +02:00
Michael Pöhn
9a10dce0e3 Merge branch 'fix-unit-tests' into 'master'
fix bandit reports

Closes #663

See merge request fdroid/fdroidserver!646
2019-05-27 09:05:35 +00:00
Michael Pöhn
716f84ec5e use actually working bandit version when running tests on alpine 2019-05-24 23:14:20 +02:00
Michael Pöhn
f434670ba5 Merge branch 'allow-bech32-bitcoin-addresses' into 'master'
bitcoin validation: allow bech32

Closes #655

See merge request fdroid/fdroidserver!643
2019-05-10 09:07:38 +00:00
Michael Pöhn
06cec2041d improve bitcoin validation regex + testcases 2019-05-07 22:43:05 +02:00
Michael Pöhn
64275356e4 Merge branch 'four-bug-fixes' into 'master'
three bug fixes: let apps build with Debian-local repos, nightly fixes

See merge request fdroid/fdroidserver!642
2019-05-06 21:11:46 +00:00
Hans-Christoph Steiner
0e807264f5 update bash completion for new deploy/nightly flags 2019-05-02 08:51:39 +02:00
Hans-Christoph Steiner
5959a395c4 nightly: archive older versions; remove archive if git mirror is full 2019-05-01 21:16:15 +02:00
Hans-Christoph Steiner
869c68dbdb deploy: if git mirror > 1GB after deleting history, delete the archive
git mirrors are meant to be an easy way to host a repo that is zero
maintenance.  They are not meant to be the canonical repo with full,
preserved archive.  This option provides the zero maintenance mode.
2019-05-01 21:16:15 +02:00
Hans-Christoph Steiner
f0460dea6e scanner: allow local Debian Maven repo file:///usr/share/maven-repo
It is now possible to build an app using only things in Debian.  Since the
buildserver will always control the contents of file:///usr/share/maven-repo,
it is the most safe repo there is.
2019-05-01 21:16:15 +02:00
Hans-Christoph Steiner
a84b515430 add weblate config for wlc CLI tool
Set API key by sticking this in a file called  ~/.config/weblate:

[weblate]
url = https://hosted.weblate.org/api/
translation = weblate/master

[keys]
https://hosted.weblate.org/api/ = ...
2019-05-01 21:16:15 +02:00
Marcus Hoffmann
cc193e903f remove obsloleted gradle versions from default buildserver install
See https://gitlab.com/fdroid/fdroidserver/merge_requests/641
2019-05-01 14:08:10 +02:00
Michael Pöhn
a670085adb Merge branch 'gradle541' into 'master'
Add Gradle 5.4 and 5.4.1, fix 5.3

See merge request fdroid/fdroidserver!641
2019-04-30 17:59:13 +00:00
Licaon_Kter
293e5483fc Add Gradle 5.4 and 5.4.1, fix 5.3 2019-04-30 17:59:13 +00:00
Hans-Christoph Steiner
9045e2854a
travis-ci: revert change that broke upgrading old Java
https://gitlab.com/fdroid/fdroidserver/merge_requests/637#note_159786747
2019-04-11 14:16:07 +02:00
Hans-Christoph Steiner
dd2f9d60f8
publish: fix stupid error in repro-signing and add integration test
stoopid mistake in ea84014f9b reported
by @CiaranG
2019-04-11 14:06:51 +02:00
Marcus
7272689ced Merge branch 'master' into 'master'
Added newer ndks, gradles, latest sdk-license, and update java 1.8 version

See merge request fdroid/fdroidserver!637
2019-04-11 11:42:18 +00:00
Marcus
3c74c07587 Merge branch 'patch-1' into 'master'
metadata.py - typo

See merge request fdroid/fdroidserver!639
2019-04-08 16:30:32 +00:00
Licaon_Kter
0ea03ddfaa metadata.py - typo 2019-04-08 16:30:32 +00:00
Michael Pöhn
67a8f03fcb Merge branch 'revert-d45431aa' into 'master'
Revert "Merge branch 'write-yaml-overhaul' into 'master'"

See merge request fdroid/fdroidserver!638
2019-04-01 10:45:49 +00:00
Michael Pöhn
67731470cc Revert "Merge branch 'write-yaml-overhaul' into 'master'"
This reverts merge request !630
2019-04-01 10:24:00 +00:00
Taco
457cf22361 Added newer ndks, gradles, latest sdk-license, and update java 1.8 version 2019-03-30 17:10:21 -04:00
Michael Pöhn
d45431aa9e Merge branch 'write-yaml-overhaul' into 'master'
use pyyaml for writing metadata instead of ruamel

Closes #611

See merge request fdroid/fdroidserver!630
2019-03-30 16:53:11 +00:00
Michael Pöhn
7215323982 Merge branch 'makebuildserver-cleanup' into 'master'
makebuildserver cleanup

See merge request fdroid/fdroidserver!626
2019-03-30 16:52:40 +00:00
Michael Pöhn
84cae0eebc Merge branch 'flush-file-before-pass' into 'master'
Flush file before passing it to next function

See merge request fdroid/fdroidserver!636
2019-03-28 19:19:30 +00:00
Nico Alt
3798a884a6 Flush file before passing it to next function
When downloading a repo index, the downloaded index got written to a
file with `.write()` in a `with` clause. Before the file got actually
written to the disk, it got already passed into the next function,
resulting in a `VerificationException`:
```
JAR signature failed to verify: /tmp/tmppq2r51r0
jarsigner: java.util.zip.ZipException: zip file is empty
```

This behavior got introduced in
869cc114a3.

I've found this bug with help of Repomaker's tests: https://gitlab.com/fdroid/repomaker/merge_requests/215#note_148994053
2019-03-22 17:15:58 +01:00
Hans-Christoph Steiner
edfd3cf530 Merge branch 'master' into 'master'
deploy: show HTTP errors when virustotal error fails.

See merge request fdroid/fdroidserver!635
2019-03-22 10:15:32 +00:00
Hans-Christoph Steiner
06ef99be6a deploy: show HTTP errors when virustotal error fails.
Otherwise, this was posting mystery JSON parsing errors because it was
trying to parse the HTTP error page as JSON.  This also moves the
virustotal API key to post data so it is not printed out in the stacktrace.
2019-03-22 10:54:28 +01:00
Michael Pöhn
2683b37044 yml metadata write: do not use local functions 2019-03-19 01:01:18 +01:00
Michael Pöhn
881a79fa84 test writing all yaml fields 2019-03-18 22:45:35 +01:00
Michael Pöhn
63afc0acb5 use pyyaml for writing metadata instead of ruamel 2019-03-18 22:45:35 +01:00
Michael Pöhn
7662520b54 makebuildserver: refactored cachedir variable away 2019-03-18 22:45:13 +01:00
Michael Pöhn
b6e45753da makebuildserver: cachefile now static variable
rename cachefile to CACHE_FILE to make clear that it is a static
variable. Also stopped passing it as an argument when it is already
globally visible.
2019-03-18 22:45:13 +01:00
Michael Pöhn
1d4e5952c9 move host vm warning to main block 2019-03-18 22:45:13 +01:00
Michael Pöhn
bb067055d4 move location check to main blok 2019-03-18 22:45:13 +01:00
Michael Pöhn
d4e5fdd95b use same logging setup as in all other fdroid scripts 2019-03-18 22:45:13 +01:00