.gitlab-ci.yml 691 Bytes
Newer Older
Sam Thursfield's avatar
Sam Thursfield committed
1 2 3
stages:
  - test

Carlos Garnacho's avatar
Carlos Garnacho committed
4
test-fedora-latest:
Sam Thursfield's avatar
Sam Thursfield committed
5
  stage: test
6
  image: registry.gitlab.gnome.org/gnome/tracker-oci-images/amd64/fedora:latest
Sam Thursfield's avatar
Sam Thursfield committed
7 8 9

  script:
    - su tracker -c 'mkdir build'
10
    - su tracker -c 'cd build; meson ..'
Sam Thursfield's avatar
Sam Thursfield committed
11
    - su tracker -c 'cd build; ninja'
12 13 14 15 16 17
    - |
      # 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_[^=]*')

18
      su tracker -c 'cd build; dbus-run-session -- env LANG=en_US.UTF8 meson test --print-errorlogs'
19 20 21 22 23

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