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

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

  script:
9
    - su tracker -c './autogen.sh --prefix=/usr'
Sam Thursfield's avatar
Sam Thursfield committed
10
    - su tracker -c 'make -j'
11
    - LANG=en_US.UTF8 VERBOSE=1 su tracker -c 'dbus-launch make check'
12
    - su tracker -c 'make functional-test'
Sam Thursfield's avatar
Sam Thursfield committed
13

14
test-meson-fedora-latest:
Sam Thursfield's avatar
Sam Thursfield committed
15
  stage: test
16
  image: registry.gitlab.gnome.org/sthursfield/tracker-oci-images/amd64/fedora:latest
Sam Thursfield's avatar
Sam Thursfield committed
17 18 19

  script:
    - su tracker -c 'mkdir build'
20
    - su tracker -c 'cd build; meson ..'
Sam Thursfield's avatar
Sam Thursfield committed
21
    - su tracker -c 'cd build; ninja'
22 23 24 25 26 27 28
    - |
      # 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'