image: registry.gitlab.gnome.org/gnome/glib-networking/master:v5

fedora-x86_64:
  script:
    # Sadly, GCC 9's LeakSanitizer is quite crashy, #86.
    # So we will run our tests under asan only once.
    - meson -Db_sanitize=address
            -Dgnutls=enabled
            -Dopenssl=enabled
            -Dlibproxy=enabled
            -Dgnome_proxy=enabled
            -Dwerror=true
            build/
    - ninja -C build/
    - meson test -v -C build/
    - rm -rf build/

    # Now again, this time without asan. We will additionally test installation.
    - meson --prefix=$HOME/glib-networking-installed
            -Dgnutls=enabled
            -Dopenssl=enabled
            -Dlibproxy=enabled
            -Dgnome_proxy=enabled
            -Dwerror=true
            build/
    - ninja -C build/
    - meson test -v -C build/ --repeat=500
    - meson install -C build/
  artifacts:
    paths:
      - build/test-results
    when: on_failure

image: registry.gitlab.gnome.org/gnome/glib-networking/master:v3

fedora-x86_64:
  script:
    # Sadly, GCC 9's LeakSanitizer is quite crashy, #86.
    # So we will run our tests under asan only once.
    - meson -Db_sanitize=address
            -Dgnutls=enabled
            -Dopenssl=enabled
            -Dlibproxy=enabled
            -Dgnome_proxy=enabled
            -Dwerror=true
            build/
    - ninja -C build/
    - meson test -v -C build/
    - rm -rf build/

    # Now again, this time without asan. We will additionally test installation.
    - meson --prefix=$HOME/glib-networking-installed
            -Dgnutls=enabled
            -Dopenssl=enabled
            -Dlibproxy=enabled
            -Dgnome_proxy=enabled
            -Dwerror=true
            build/
    - ninja -C build/
    - meson test -v -C build/ --repeat=500
    - meson install -C build/
  artifacts:
    paths:
      - build/test-results
    when: on_failure

Revert "ci: new image built with podman!"
Revert "ci: new image built with podman!"

This reverts commit c0e8e49510ca184c0c1fd6b6fdcbc47e4ff73944.
