Commit graph

78 commits

Author SHA1 Message Date
Hans-Christoph Steiner
9ccf886978
gitlab-ci: check active git repos to ensure they're available
This then edits the metadata file for apps with failing git repos, then
includes those edited files in the gitlab job artifacts.

fdroid/fdroiddata!5262
2019-08-26 11:24:17 +02:00
Hans-Christoph Steiner
a972bb6c93
gitlab-ci: do not run fdroid-buildserver automatically 2019-08-15 14:34:37 +02:00
Hans-Christoph Steiner
d170d3e5fb
gitlab-ci: do not run fdroid-buildserver jobs on my fork 2019-08-15 14:32:51 +02:00
Hans-Christoph Steiner
24ce07db01
gitlab-ci: use androguard and python3-ruamel.yaml from backports
This should fix the lint issue in:
https://gitlab.com/fdroid/fdroiddata/merge_requests/5250
2019-08-15 14:32:49 +02:00
Michael Pöhn
178b2625c5 skip git checkout if NoSourceSince is set 2019-07-03 21:08:53 +02:00
Hans-Christoph Steiner
9e1177255c
gitlab-ci: ensure localized metadata has proper format 2019-05-20 14:26:39 +02:00
Hans-Christoph Steiner
180a6c93af
gitlab-ci: check that localized metadata is properly named 2019-05-10 13:37:18 +02:00
Marcus Hoffmann
f03619945d
CI: don't git clone git-svn repos 2019-02-21 14:08:36 +01:00
Hans-Christoph Steiner
a89b121a3b gitlab-ci: temp disable buildserver ci 2019-01-03 23:18:11 +01:00
Hans-Christoph Steiner
c613b43520 gitlab-ci: allow @beuc's runner 2018-12-17 16:31:24 +01:00
Hans-Christoph Steiner
c87a57a430 gitlab-ci: do not rely on static paths for the gitlab runner
Before, this assumed that the gitlab-runner was running as the 'fdroid'
user.  Now, it shouldn't matter which user it is running as.
2018-12-08 09:48:13 +01:00
Marcus Hoffmann
0ea601afc7 CI: enable for Bubu instead of bubu 2018-11-26 21:50:07 +01:00
Hans-Christoph Steiner
d1a38247d5 fix typo: fdroidata --> fdroiddata 2018-11-23 15:14:06 +01:00
Hans-Christoph Steiner
0594d15ed6 gitlab-ci: only run fdroid-buildserver for those with runners 2018-11-23 15:11:30 +01:00
Hans-Christoph Steiner
f2c4bff0a3 gitlab-ci: cache APKs and git repos between runs 2018-11-15 18:06:32 +01:00
Hans-Christoph Steiner
f129254d82 gitlab-ci: use official build flags for all builds 2018-11-15 15:07:50 +01:00
Hans-Christoph Steiner
2b975a3274 gitlab-ci: run LibScout on any APKs that were produced 2018-11-15 15:07:26 +01:00
Hans-Christoph Steiner
2753ecef80 gitlab-ci: build recent commits on the main repo 2018-11-14 16:56:58 +01:00
Hans-Christoph Steiner
a31aa3d100 gitlab-ci: run fdroid build on new buildserver runner 2018-11-14 13:37:51 +01:00
Hans-Christoph Steiner
c6e6a04960 gitlab-ci: only run gitstats when scheduled 2018-09-21 10:56:34 +02:00
Hans-Christoph Steiner
c138e75a8d gitlab-ci: GitStats page in GitLab Pages 2018-09-21 10:13:11 +02:00
Hans-Christoph Steiner
c24ce3007b gitlab-ci: use xargs when running exiftool
This should handle long argument lists better.
2018-08-29 22:49:57 +02:00
Hans-Christoph Steiner
8dade6ece0 gitlab-ci: check if Application ID will cause keyalias collision
fdroid/fdroidserver#553
2018-08-29 22:49:51 +02:00
Hans-Christoph Steiner
cddf3589f7 gitlab-ci: make sure EXIF is stripped from all included images
EXIF state can be used as an exploit vector and for malicioius code
delivery.  Neither fdroidclient nor fdroid-website use the EXIF data, so
just strip it entirely.  'exiftool' is available in most distros.
2018-03-20 20:16:53 +01:00
Marcus Hoffmann
8852fde452
CI: don't try to fetch repos of deleted apps.
--diff-filter=d excludes (because of the lowercase letter) deleted
files.
2018-03-12 13:34:23 +01:00
Hans-Christoph Steiner
253a1b144c gitlab-ci: only check commits included in the current merge request 2018-02-28 22:12:04 +01:00
Hans-Christoph Steiner
38d0e8cd39 gitlat-ci: fix detection of appids changed in this merge request
It was detecting changed description files in subfolders, i.e.:
metadata/org.fdroid.fdroid.ota/en-US/description.txt
metadata/org.fdroid.fdroid.ota/en-US/summary.txt
2018-02-23 22:37:34 +01:00
Hans-Christoph Steiner
23a62fd5fa gitlab-ci: download fdroidserver as tarball rather than git clone
This should hopefully be quicker and lower impact.
2018-02-23 22:32:55 +01:00
Hans-Christoph Steiner
d6e81e47bb gitlab-ci: error if apps use insecure plain HTTP gradle repositories
It is very easy to mess up and include plain HTTP URLs for gradle
repositories, which can lead to gradle downloading code from HTTP and
immediately executing it.  The fix is almost always changing "http:" to
"https:".

https://max.computer/blog/how-to-take-over-the-computer-of-any-java-or-clojure-or-scala-developer
2018-01-26 13:41:41 +01:00
Hans-Christoph Steiner
fed1acd8f6 gitlab-ci: if running on a fork, only check the files in the fork
To avoid confusing newbies, the CI should only run on the files that were
changed in the fork.  Sometimes lint/rewrite errors slip into the git repo,
and the CI for all merge requests will fail until those are fixed.  This
changes that to make the merge request CI only fail if the files in the
merge request are the ones with problems.

The CI runs on the main repo should will check everything.
2018-01-26 13:41:41 +01:00
Hans-Christoph Steiner
58070a0982 update gitlab-ci base image to Debian/stretch
https://forum.f-droid.org/t/f-droid-ci-images-reorg
2017-07-03 13:07:10 +02:00
Hans-Christoph Steiner
5115d51d8c gitlab-ci: use server image from https://gitlab.com/fdroid/ci-images
This image provides everything needed to run all aspects of fdroidserver,
and is only like 100 megs bigger than the base image that this was using
before.
2017-04-04 21:56:20 +02:00
Hans-Christoph Steiner
92b09c7ef7 gitlab-ci: show diff when there are lint failures
Oftentimes, the lint failures are just simple whitespace issues.  Many
people submitting metadata do not really know much about the fdroid tools,
so they have to look up or ask what rewritemeta is.  This just shows a diff
after running rewritemeta so it should be clearer what the issue is.
2017-01-26 14:28:11 +01:00
Daniel Martí
ffab5a5ad6 CI: bump image 2016-12-23 12:45:31 +01:00
Daniel Martí
d35c748ee7 CI: bump image 2016-10-23 17:14:10 +01:00
Daniel Martí
271bd368b9 CI: bump docker version 2016-09-10 12:09:23 +02:00
Daniel Martí
6400ac98c3 CI: bump docker image 2016-08-21 11:00:50 +02:00
Daniel Martí
f8e0dd58cf CI: bump image 2016-07-31 18:48:11 +02:00
Daniel Martí
a875c40e56 CI: bump docker image 2016-07-06 11:37:26 +01:00
Daniel Martí
fb2a5dfd7d CI: bump docker image
To be in sync with the other repos.
2016-06-23 11:44:33 +01:00
Daniel Martí
145a9d2ab2 CI: bump image 2016-06-20 11:18:48 +01:00
Daniel Martí
396ab81a42 CI: bump docker image 2016-06-13 19:33:59 +01:00
Daniel Martí
28d04376c0 CI: Bump docker image 2016-05-12 23:11:17 +01:00
Daniel Martí
dd83c50a92 CI: bump image, re-add --depth=1 to clone 2016-04-29 19:17:23 +01:00
Daniel Martí
14da2ce04e CI: Temporarily remove --depth=1
See https://gitlab.com/gitlab-com/support-forum/issues/652.
2016-04-18 15:22:42 +01:00
Daniel Martí
9e52a153a2 CI: Bump image 2016-04-05 10:52:37 +01:00
Daniel Martí
8f8a427db7 CI: Use the new base image
Lighter, since it doesn't include all the stuff required to build and
test the client that we don't need here.
2016-03-29 13:36:43 +01:00
Daniel Martí
b55f2a7628 CI: Bump docker image
Now python3 comes installed.
2016-03-17 14:17:15 +00:00
Daniel Martí
1df2d03ed3 CI: Install py3 deps until image is updated 2016-03-13 13:27:00 +00:00
Daniel Martí
255781f489 CI: No longer need to install deps 2016-02-29 22:57:21 +00:00