Commit graph

171 commits

Author SHA1 Message Date
Ondrej Holy
cf9d7a6ebb ci: Make the update image job work with fedora:latest
For some reason, "buildah login" is not enough with fedora:latest
and "buildah push --creds" needs to be used to make it work again.
2021-10-11 06:45:26 +00:00
Ondrej Holy
7b469dfa87 ci: Use lineup-parameters python script
The lineup-parameters.c is hard to use with meson. Let's use the python
rewrite from
https://gitlab.gnome.org/GNOME/epiphany/-/blob/master/data/lineup-parameters
instead.
2021-10-11 06:45:26 +00:00
Ondrej Holy
44d574e176 ci: Remove fedora job
The fedora job was there before the flatpak job. But now we relies on
flatpak job and the fedora job doesn't really give much benefits. It is
rather waste of runners and maintainers time. Let's remove it.
2021-10-11 06:45:26 +00:00
Ondrej Holy
78275a7180 ci: Remove flatpak master job
The flatpak master job seems to be redundant currently. It uses the same
image as flatpak devel and their .yml files are equal. The two flatpak jobs
are relict from the times when GNOME SDK was unstable and broke CI often,
which is no more true. Let's remove the flatpak master job.
2021-10-11 06:45:26 +00:00
Ondrej Holy
bb5a72d685 ci: Do not run style check on stable branches
The style check job currently fails on stable branches since the recent
uncrustify change. We could use older image on stable, or backport the code
changes, but I think that the style check job on stable branches is not
actually needed. Let's disable the style check job on stable branches to
fix pipeline there and avoid this situation in the future.
2021-10-11 06:45:26 +00:00
Ondrej Holy
a77b5cf91b ci: Use fedora:latest instead of rawhide
There are various problems with the rawhide image currently and I don't
know how to workaround them. Let's use fedora:latest (temporarily) to fix
our pipeline.
2021-08-10 11:20:25 +00:00
António Fernandes
7834de2671 ci: Set nightly runtime repository
It was set to flathub because we used to depend on a stable runtime. [1]

We have since changed to depend on the unstable runtime[2], but the
Nightly flatpakref still configures the wrong repo on 
installation. If the user didn't have the gnome-nightly repository 
configured in advance, then the runtime cannot be found, failing the
installation.[3]

Update the repo URL, which I should have done in [2].

[1] c4afd14696
[2] d95a616116
[3] https://blogs.gnome.org/antoniof/2021/03/05/files-40-beta-more-productivity-and-some-eye-candy/#comment-541
2021-03-06 18:24:33 +00:00
Bastien Nocera
43b356b03b Revert "ci: Use Fedora latest instead of rawhide temporarily"
GNOME CI runners have been updated to the latest libseccomp so the
problem should no longer happen.

This reverts commit ab55380f20.
2020-12-11 13:49:55 +01:00
Ondrej Holy
ab55380f20 ci: Use Fedora latest instead of rawhide temporarily
The pipeline currently fails with Fedora rawhide, because g-ir-scanner fails
with failures like: "ldd: error: you do not have read permission for
`/builds/GNOME/nautilus/_build/tmp-introspectgwhh729q/Nautilus-3.0'".
This obviously affects more projects:, e.g. GNOME/grilo!62. Let's use
Fedora latest for now as a workaround.
2020-11-20 09:41:44 +01:00
Ondrej Holy
8eb21a09fc ci: Remove broken triage job
The triage job is broken, which regularly causes CI failures. I've
made some attemts to fix it but I failed. I don't have capacity to
spent more time on it. Let's remove the job completely for now to
prevent the confusing CI failures.

Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/1625
2020-11-20 09:39:57 +01:00
Ondrej Holy
c90d787e1f ci: Use Buildah instead of Docker to generate images
The GNOME runners are no more privileged and thus it is not possible to
use Docker from the pipeline. Let's use Buildah instead Docker to fix
the image generation.
2020-11-20 09:38:24 +01:00
António Fernandes
9dbc32ded3 Revert "ci: Hardcode image version for style check job"
This reverts commit 831203e951.

The previous commit fixed the issue we were working around.
2020-11-18 15:02:55 +00:00
Ondrej Holy
831203e951 ci: Hardcode image version for style check job
The style check job currently fails as uncrustify from rawhide obviously
changed its behavior. It tries to change function pointer the following
way:

- gboolean (*each_function)(NautilusCanvasIcon *, gpointer),
+ gboolean ( *each_function )(NautilusCanvasIcon *, gpointer),

I don't think this is right, but don't know how to fix that ellegantly.
Note that this is because of "sp_before_ptr_star = false". Let's
hardcode the previous image varsion to avoid this change for now.
2020-09-07 09:59:59 +02:00
Ondrej Holy
7868470694 flatpak: Build all tests by default
The flatpak template has been changed recently and MESON_ARGS variable
doesn't have any effect currently. Let's drop MESON_ARGS and move the
build options into the manifests directly (ie. -Dtests=all).

See:
https://gitlab.gnome.org/GNOME/citemplates/blob/master/flatpak/flatpak_ci_initiative.yml
https://mail.gnome.org/archives/desktop-devel-list/2020-April/thread.html
2020-05-10 22:59:32 +00:00
Ondrej Holy
949251868d ci: Run nightly job even if cross environment stage fails
Currently, the nightly job is skipped if fedora rawhide, or flatpak
master job fails. This is not wanted as the nightly should be published
if flatpak devel job succeeds. Let's allow failures of those jobs to
not block the deploy stage.
2020-04-15 16:12:34 +02:00
Ondrej Holy
c4e557b295 ci: Do not show update image job on merge requests
The update image job is always shown (under the GNOME namespace),
however, fedora rawhide job is used only on master/web. So let's show
this job only on master/web as well.
2020-04-15 16:12:34 +02:00
Ondrej Holy
b65cda5fae ci: Run fedora rawhide job always on master
The fedora job is run only on schedules and tags. The job is pretty
fast now. So let's run it always on master so we know about possible
breakages immediately and not after several days.

Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/1441
2020-04-15 16:11:49 +02:00
Ondrej Holy
1b73cf2601 Revert "ci: Use test stage for flatpak devel job"
This reverts commit e7c2a0182a, because
the stage name doesn't have to be explicitely defined currently as it
was changed directly in the template:
5bffac6dfb
2020-04-05 16:22:26 +00:00
Ondrej Holy
a6eca5c513 ci: Use docker image to speed up jobs
Fedora and style check jobs install dependencies on each run. This
causes that the pipelines take a long time. Let's use a custom docker
image to not block runners for such a long time and to get the pipeline
results faster. This commit also adds a new job to generate the docker
image for us.
2020-04-05 16:22:26 +00:00
Ondrej Holy
b945567a64 ci: Add artifacts for style check job
It is not easy to find out  why the style check job failed. Let's expose
the style check job diff over artifacts to make it easier.
2020-04-05 16:22:26 +00:00
Ondrej Holy
f13903f575 ci: Add style-check job
The whole code was reformatted using uncrustify script, but MRs are not
checked using the script. Let's add style-check job to prevent wrongly
formated MRs to be merged.
2020-04-05 16:22:26 +00:00
Ondrej Holy
2519d26f11 ci: Fix alignment of triage jobs
Triage jobs use just 2 spaces as tab size, whereas other jobs are using 4.
Let's fix this.
2020-04-05 16:22:26 +00:00
Ondrej Holy
2893aec73b ci: Replace underscore by space in stage name
The stage and job names can contain spaces and they are already used
in job names. Let's replace underscore in cross_environemnt stage to
make the pipeline output nicer.
2020-04-05 16:22:26 +00:00
Ondrej Holy
352e6688d0 ci: Remove obsolete review jobs
Teh review and stop_review jobs are no more needed as per flatpak_ci_initiative.yml
comments. Let't remove them to make the file more readable.
2020-04-05 16:22:26 +00:00
Ondrej Holy
9899617174 ci: Move code from template directly to job
The distro_test template is used only by one job. Let's move the code
directly to that job to make the file more readable.
2020-04-05 16:22:26 +00:00
Ondrej Holy
0733acc223 ci: Remove dead code
The coverage is not computed since the commit a5a405d, but .gitlab-ci.yml
still contains some coverage related code which is not currently used. Let's
remove that code to make it more readable.
2020-04-05 16:22:26 +00:00
Ondrej Holy
e7c2a0182a ci: Use test stage for flatpak devel job
The flatpak devel job uses .pre stage currently.

This seems to be the reason why pipelines are not triggered in some
cases according: https://gitlab.com/gitlab-org/gitlab/issues/198518.

Let's use the unused test stage instead to fix the pipeline and to make
the pipeline output nicer.
2020-03-09 09:29:00 +01:00
Ondrej Holy
57e2bbec47 ci: Fix flatpak master job
The flatpak master job fails currently. This is because it tries to rewrite
artifacts from flatpak devel job which fails with permission denied error,
because the runners are not more privileged. Let's use empty dependencies
for flatpak master job to ensure that the artifacts from flatpak devel
job are not passed in.
2020-03-06 12:29:02 +01:00
António Fernandes
d95a616116 flatpak: Unpin most dependencies
We are near 3.36, so let's update the dependencies.

gexiv2 git master is failing to build locally, so I've 
updated it to the latest tag that builds locally.
2020-02-06 20:28:17 +00:00
António Fernandes
d71c3533df CI: publish nightly build
See https://mail.gnome.org/archives/desktop-devel-list/2019-September/msg00028.html
2019-09-30 08:54:40 +01:00
António Fernandes
c4afd14696 CI: Update runtime repos
The stable org.gnome.Platform runtime has moved to flathub a while now.

The nightly org.gnome.Platform runtime has recently moved to 
nightly.gnome.org, as per https://mail.gnome.org/archives/desktop-devel-list/2019-September/msg00028.html
2019-09-28 22:04:08 +00:00
António Fernandes
3b7435e62f CI: drop superfluous overrides
They are provided by the template we inherit from.
2019-09-28 21:47:22 +00:00
António Fernandes
81dd339634 flatpak: Update to 3.34 runtime
Also, bundle intltool, because the 3.34 Sdk doesn't include it but
tracker-miners still depends on it.

Intltool lines taken from https://github.com/flathub/shared-modules.git
2019-09-18 21:46:20 +01:00
Ernestas Kulik
e23cb543b5 .gitlab-ci.yml: Skip pages for now
Seems that not producing output will cause failures.
2019-04-30 17:49:30 +02:00
Ernestas Kulik
ac27965020 .gitlab-ci.yml: Try harder to exclude coverage reports 2019-04-30 17:19:50 +02:00
Ernestas Kulik
cce3f3f439 .gitlab-ci.yml: Remove coverage report from artifacts
Oversight from a5a405d669.
2019-04-30 16:44:24 +02:00
Ernestas Kulik
a5a405d669 .gitlab-ci.yml: Disable coverage reports for flatpak
https://gitlab.com/freedesktop-sdk/freedesktop-sdk/merge_requests/1120
https://gitlab.com/freedesktop-sdk/freedesktop-sdk/issues/740

Good to know that libgcov is useless.
2019-04-14 14:59:29 +02:00
Carlos Soriano
8f77d625d2 Update .gitlab-ci.yml 2019-03-21 14:15:22 +00:00
Carlos Soriano
e3f1b309ad Flatpak: Remove gtk4 manifest
The gtk4 branch should have the proper manifest already
2019-03-21 13:20:28 +00:00
Carlos Soriano
a9ed446917 Flatpak: Use Devel profile for Master and Gtk4
Was giving errors in the CI and doesn't really provide much benefits
2019-03-21 13:12:22 +00:00
Carlos Soriano
e3d6d19089 CI: Remove OpenSuse and Ubuntu
Errors are usually old deps or such, and needs someone taking care of those.

It's not much of a benefit upstream, so let's remove them.
2019-03-21 13:10:31 +00:00
Carlos Soriano
2f4fd0cf8b Update .gitlab-ci.yml 2019-03-20 14:41:30 +00:00
Carlos Soriano
f5e70aff59 Update .gitlab-ci.yml 2019-03-18 13:23:46 +00:00
Carlos Soriano
ef9dca67c6 CI: Don't run pages for translation commits 2019-01-17 15:53:27 +00:00
Carlos Soriano
c8cdf67008 CI: Use master SDK 2019-01-17 15:33:37 +00:00
Carlos Soriano
7f85c0ebf9 CI: Fix type in issue triage job 2018-12-14 13:37:42 +00:00
Carlos Soriano
5523d02969 CI: Add ruby image for the triage job 2018-12-14 13:26:18 +00:00
Carlos Soriano
06faf4a6e3 CI: Add triage bot token 2018-12-12 15:51:41 +00:00
Jordan Petridis
5868b7a54f CI: Fix pages deploy
It depends on the gcovr job to create the html report
2018-12-10 12:21:58 +00:00
Jordan Petridis
6720009d26 CI: Use the new citemplate repo wiht include:
This is a new gitlab feature which allows to import a file from
somewhere else with predefined config and jobs. This helps us
centralize the configuration of the flatpak jobs and keep them
in sync easily.

[1] https://docs.gitlab.com/ce/ci/yaml/README.html#include
2018-12-10 10:11:20 +00:00