tests/amdgpu: create Active function for basic test suite
[platform/upstream/libdrm.git] / .gitlab-ci.yml
index 05aa743..a6e3bd4 100644 (file)
 # repository's registry will be used there as well.
 variables:
   UPSTREAM_REPO: mesa/drm
-  DEBIAN_TAG: "2019-10-20"
+  DEBIAN_TAG: "2019-11-16"
   DEBIAN_VERSION: buster-slim
   DEBIAN_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TAG"
-  ARCH_TAG: "2019-10-20"
-  ARCH_VERSION: rolling
-  ARCH_IMAGE: "$CI_REGISTRY_IMAGE/archlinux/$ARCH_VERSION:$ARCH_TAG"
 
 include:
   - project: 'wayland/ci-templates'
-    ref: 1f7f57c64ff4ebbf7292e3b7a13600518b8cb24c
+    ref: 0a9bdd33a98f05af6761ab118b5074952242aab0
     file: '/templates/debian.yml'
-  - project: 'wayland/ci-templates'
-    ref: 1f7f57c64ff4ebbf7292e3b7a13600518b8cb24c
-    file: '/templates/arch.yml'
 
 stages:
   - containers
@@ -36,6 +30,8 @@ stages:
 
 # When & how to run the CI
 .ci-run-policy:
+  except:
+    - schedules
   retry:
     max: 2
     when:
@@ -52,25 +48,15 @@ debian:
     GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
     DEBIAN_EXEC: 'bash .gitlab-ci/debian-install.sh'
 
-arch:
-  stage: containers
-  extends:
-    - .ci-run-policy
-    - .arch@container-ifnot-exists
-  variables:
-    GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
-    ARCH_EXEC: 'bash .gitlab-ci/arch-install.sh'
-
 
 # BUILD
 
 .meson-build:
   stage: build
-  extends: .ci-run-policy
   variables:
     GIT_DEPTH: 10
   script:
-    - meson _build
+    - meson build
         -D amdgpu=true
         -D cairo-tests=true
         -D etnaviv=true
@@ -85,25 +71,61 @@ arch:
         -D radeon=true
         -D tegra=true
         -D udev=true
-        -D valgrind=true
+        -D valgrind=auto
         -D vc4=true
         -D vmwgfx=true
-    - ninja -C _build
-    - ninja -C _build test
-    - DESTDIR=$PWD/install ninja -C _build install
+        ${CROSS+--cross /cross_file-$CROSS.txt}
+    - ninja -C build
+    - ninja -C build test
+    - DESTDIR=$PWD/install ninja -C build install
   artifacts:
     when: on_failure
     paths:
-      - _build/meson-logs/*
+      - build/meson-logs/*
 
-meson-debian:
-  extends: .meson-build
+meson-x86_64:
+  extends:
+    - .ci-run-policy
+    - .meson-build
   image: $DEBIAN_IMAGE
   needs:
     - debian
 
-meson-arch:
+meson-i386:
+  extends: meson-x86_64
+  variables:
+    CROSS: i386
+
+meson-aarch64:
+  extends: meson-x86_64
+  variables:
+    CROSS: arm64
+
+meson-armhf:
+  extends: meson-x86_64
+  variables:
+    CROSS: armhf
+
+meson-ppc64el:
+  extends: meson-x86_64
+  variables:
+    CROSS: ppc64el
+
+meson-arch-daily:
+  rules:
+    - if: '$SCHEDULE == "arch-daily"'
+      when: on_success
+    - when: never
+  image: archlinux/base
+  before_script:
+    - pacman -Syu --noconfirm --needed
+        base-devel
+        cairo
+        cunit
+        docbook-xsl
+        libatomic_ops
+        libpciaccess
+        libxslt
+        meson
+        valgrind
   extends: .meson-build
-  image: $ARCH_IMAGE
-  needs:
-    - arch