.gitlab-ci.yml 1.47 KB
Newer Older
1 2 3
# The container images used in this pipeline are built from this
# GitLab project: https://gitlab.gnome.org/sthursfield/tracker-oci-images/

Sam Thursfield's avatar
Sam Thursfield committed
4 5 6
stages:
  - test

Carlos Garnacho's avatar
Carlos Garnacho committed
7
test-fedora-latest:
Sam Thursfield's avatar
Sam Thursfield committed
8
  stage: test
9
  image: registry.gitlab.gnome.org/gnome/tracker-oci-images/amd64/fedora:latest
Sam Thursfield's avatar
Sam Thursfield committed
10 11 12 13 14 15 16 17 18 19 20 21

  script:
    # We can build and test tracker-miners against tracker just by building
    # tracker as a submodule.
    #
    # Note that this approach doesn't currently work for the functional-tests,
    # they require the ontologies and domain rules from tracker to be installed
    # somewhere. It would be nice to improve the functional-tests so that they
    # will run without depending on any files outside of the build tree. Note
    # that Tracker is installed on the host here, thanks to `dnf builddep`.
    - su tracker -c 'mkdir subprojects; cd subprojects; git clone https://gitlab.gnome.org/GNOME/tracker'
    - su tracker -c 'mkdir build'
22
    - su tracker -c 'cd build; meson .. --prefix=/usr -Dtracker_core=subproject'
Sam Thursfield's avatar
Sam Thursfield committed
23
    - su tracker -c 'cd build; ninja'
24 25 26 27 28 29
    - |
      # Remove the many "CI_" variables from the environment. Meson dumps the
      # whole environment for every failed test, and that gives a whole
      # screenful of junk each time unless we strip these.
      unset $(env|grep -o '^CI_[^=]*')

30
      su tracker -c 'cd build; dbus-run-session -- env LANG=en_US.UTF8 meson test --suite tracker-miners --print-errorlogs'
31 32 33 34 35

  artifacts:
    when: always
    paths:
    - build/meson-logs/testlog.txt