summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 1922acfb5a645127ab2a75ef2974e962a5e71191 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
stages:
  - test

test-fedora-latest:
  stage: test
  image: registry.gitlab.gnome.org/gnome/tracker-oci-images/amd64/fedora:latest

  script:
    - su tracker -c 'mkdir build'
    - su tracker -c 'cd build; meson .. -Db_lto=true -Db_coverage=true'
    - su tracker -c 'cd build; ninja'
    - |
      # 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_[^=]*')

      su tracker -c 'cd build; meson test --print-errorlogs'

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