kumquat-buildroot/support/misc
Yann E. MORIN e92bb8f1c9 gitlab-ci: don't use before_script in job templates
When gitlab prepares a job to run, it checks out the repository with a
non-root user, and spawns a container that runs as root, with some UID
mapping that makes the files be owned by root in the
container. However, our pipelines run as a nont-root user.

Commit bde165f7ad (.gitlab-ci.yml: update Docker image to use) updated
the docker image that is used to run in our pipelines.

That new image includes a git version that is stricter about the
ownership of the git tree it is acting in: git aborts in error when the
user running it does not own the repository.

We use `git ls-tree` quite a lot in our check-{flake8,package,symbols}
rules, so they all fail (in various ways).

To fix this, we either need to fix the ownership or tell git to ignore
the situation. In either case, we'll need to run a scriptlet before all
our jobs.

Gitlab-ci allows to provide a global before_script, that is inherited by
all jobs. However, some of our jobs already declare a before_script, and
that would shadow the global before_script.

There is no technical reason to do our before_script separately from
the actual script, so we move the code from the before_scripts to the
corresponding scripts.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Cc: Romain Naour <romain.naour@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Reviewed-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2023-02-07 22:55:49 +01:00
..
Buildroot.cmake
cross-compilation.conf.in package/pkg-meson.mk: add support for fortran cross-compilation 2022-08-06 23:57:44 +02:00
gen-glibc-locales.mk Makefile: Parallelize glibc locale generation 2021-07-25 16:46:30 +02:00
gitlab-ci.yml.in gitlab-ci: don't use before_script in job templates 2023-02-07 22:55:49 +01:00
relocate-sdk.sh support/misc/relocate-sdk.sh: allow relocating to any directory 2022-01-06 22:27:56 +01:00
target-dir-warning.txt
toolchainfile.cmake.in support/misc/toolchainfile.cmake.in: add definitions needed by Qt6 2022-07-26 22:54:38 +02:00
utils.mk support/misc/utils: introduce $(tab)=\t and $(escape)=\x1b 2021-12-30 21:31:27 +01:00
Vagrantfile Update for 2022.11.1 2023-01-18 17:50:12 +01:00