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

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

  script:
    - su tracker -c './autogen.sh --prefix=/usr'
    - su tracker -c 'make -j'
    - LANG=en_US.UTF8 VERBOSE=1 su tracker -c 'dbus-launch make check'
    - su tracker -c 'make functional-test'

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

  script:
    - su tracker -c 'mkdir build'
    - su tracker -c 'cd build; meson ..'
    - 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; LANG=en_US.UTF8 dbus-launch meson test --print-errorlogs'