Commit graph

68 commits

Author SHA1 Message Date
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
Daniel Martí 44824d6946 CI: Specify our docker image 2016-02-29 14:57:49 +00:00
Daniel Martí 05b7c67542 CI: Simplify script 2016-02-26 16:37:50 +00:00
Daniel Martí 485c6b4aa2 CI: explicitly install git
The base system might not have it.
2016-01-07 15:06:29 +01:00
Daniel Martí 27ec7f82f8 CI: run lint -f 2015-12-08 17:58:12 +01:00
Daniel Martí 5741599f1c CI: clone --depth=1 is enough 2015-11-14 23:49:53 +01:00
Daniel Martí eb45f97576 CI: fix path typo 2015-09-11 18:41:15 -07:00
Daniel Martí cbf2de9caa CI: check formatting via rewritemeta 2015-09-11 18:37:56 -07:00
Daniel Martí 6f26316caa Set up fdroidserver at the start of PATH 2015-09-02 11:51:14 -07:00
Daniel Martí 761f923fb7 CI: add python-yaml dependency 2015-09-01 11:45:02 -07:00
Daniel Martí 895a9a4a68 Gitlab CI: server no longer attached to magic and requests 2015-08-31 17:06:33 -07:00