summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: ac37d5b75f6b9c016db7073e71f9e765c94e8157 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# -*- indent-tabs-mode: nil -*-

variables:
  # Docker images for various distros and architectures

  AMD64_FEDORA_LATEST:       "registry.gitlab.gnome.org/gnome/librsvg-oci-images/amd64/fedora:latest"
  AMD64_FEDORA_RAWHIDE:      "registry.gitlab.gnome.org/gnome/librsvg-oci-images/amd64/fedora:rawhide"
  AMD64_OPENSUSE_TUMBLEWEED: "registry.gitlab.gnome.org/gnome/librsvg-oci-images/amd64/opensuse:tumbleweed"
  AMD64_DEBIAN_TESTING:      "registry.gitlab.gnome.org/gnome/librsvg-oci-images/amd64/debian:testing"

  I386_DEBIAN_TESTING:       "registry.gitlab.gnome.org/gnome/librsvg-oci-images/i386/debian:testing"

stages:
  - test

.test_template: &distro_test
  before_script:
    # CCache Config
    - mkdir -p ccache
    - export CCACHE_BASEDIR=${PWD}
    - export CCACHE_DIR=${PWD}/ccache
    - export CC="ccache gcc"

  script:
    - ./autogen.sh
    # Ignore test suite failures with CAIRO_TEST_FORCE_PASS=1
    - make check CAIRO_TEST_FORCE_PASS=1 VERBOSE=1

  artifacts:
    when: on_failure
    paths:
      - test/*.log
      - test/pdiff/*.log
      - test/output

  cache:
    # Each job will have it's own cache
    key: "$CI_JOB_NAME"
    paths:
      - ccache/

# TEST STAGE
########################################################################

fedora:test:
  # Need pixman >= 0.36
  #image: $AMD64_FEDORA_LATEST
  image: $AMD64_FEDORA_RAWHIDE
  stage: test
  <<: *distro_test