Skip to content

added initial .gitlab-ci.yml

Karl-Philipp Richter requested to merge krichter/geoclue:gitlab-ci into master

The latest pipeline result can be found at https://gitlab.freedesktop.org/krichter/geoclue/pipelines/321. It reveal a build error with Ubuntu 14.04:

gclue-client-info.c: In function 'get_xdg_id':
gclue-client-info.c:189:9: error: 'g_autofree' undeclared (first use in this function)
         g_autofree char *path = NULL;
         ^
gclue-client-info.c:189:9: note: each undeclared identifier is reported only once for each function it appears in
gclue-client-info.c:189:20: error: expected ';' before 'char'
         g_autofree char *path = NULL;
                    ^
gclue-client-info.c:190:20: error: expected ';' before 'char'
         g_autofree char *content = NULL;
                    ^
gclue-client-info.c:194:9: error: 'path' undeclared (first use in this function)
         path = g_strdup_printf ("/proc/%u/cgroup", pid);
         ^
gclue-client-info.c:196:42: error: 'content' undeclared (first use in this function)
         if (!g_file_get_contents (path, &content, NULL, NULL))
                                          ^
gclue-client-info.c:202:28: error: expected ';' before 'char'
                 g_autofree char *scope = NULL;
                            ^
gclue-client-info.c:209:17: error: 'scope' undeclared (first use in this function)
                 scope = g_path_get_basename (unit);
                 ^
make[4]: *** [gclue-client-info.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/builds/krichter/geoclue/geoclue/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/builds/krichter/geoclue/geoclue/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/builds/krichter/geoclue/geoclue/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/builds/krichter/geoclue/geoclue'
make: *** [all] Error 2

(for details see https://gitlab.freedesktop.org/krichter/geoclue/-/jobs/511) for which I can open a separate issue if you want (if the system is too old to be supported the missing prerequisites should cause failure in configure rather than in make).

More OS to test on can be added quite easily since GitLab CI supports arbitrary Docker images.

Edited by Karl-Philipp Richter

Merge request reports