gitlab-ci: add a make vulkan build
authorEric Engestrom <eric.engestrom@intel.com>
Mon, 21 Jan 2019 09:42:37 +0000 (09:42 +0000)
committerEric Engestrom <eric.engestrom@intel.com>
Wed, 6 Feb 2019 17:56:30 +0000 (17:56 +0000)
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
.gitlab-ci.yml
.travis.yml

index 2bec220666d4bfe340fb78de2581d4d2bda95d27..08f95c86338c972e54a3ecc2617dc9a1982d1c07 100644 (file)
@@ -87,6 +87,30 @@ containers:ubuntu:
     - ninja
     - ninja test
 
+.make-build:
+  extends: .build
+  variables:
+    MAKEFLAGS: "-j4"
+  before_script:
+    - if test -n "$LLVM_VERSION"; then
+        export LLVM_CONFIG="llvm-config-${LLVM_VERSION}";
+      fi
+    - mkdir build
+    - cd build
+    - ../autogen.sh
+        --enable-autotools
+        --enable-debug
+        $LIBUNWIND_FLAGS
+        $DRI_LOADERS
+        --with-dri-drivers=$DRI_DRIVERS
+        $GALLIUM_ST
+        --with-gallium-drivers=$GALLIUM_DRIVERS
+        --with-vulkan-drivers=$VULKAN_DRIVERS
+        --disable-llvm-shared-libs
+  script:
+    - make
+    - eval $MAKE_CHECK_COMMAND
+
 build:meson-vulkan:
   extends: .meson-build
   variables:
@@ -108,3 +132,28 @@ build:meson-vulkan:
       -D gallium-opencl=disabled
     VULKAN_DRIVERS: intel,amd
     LLVM_VERSION: "7"
+
+build:make-vulkan:
+  extends: .make-build
+  variables:
+    MAKE_CHECK_COMMAND: "make -C src/gtest check && make -C src/intel check"
+    LLVM_VERSION: "7"
+    DRI_LOADERS: >
+      --disable-glx
+      --disable-gbm
+      --disable-egl
+      --with-platforms=x11,wayland,drm
+    DRI_DRIVERS: ""
+    GALLIUM_ST: >
+      --enable-dri
+      --enable-dri3
+      --disable-opencl
+      --disable-xa
+      --disable-nine
+      --disable-xvmc
+      --disable-vdpau
+      --disable-va
+      --disable-omx-bellagio
+      --disable-gallium-osmesa
+    VULKAN_DRIVERS: intel,radeon
+    LIBUNWIND_FLAGS: --disable-libunwind
index 141337db26df15ef435c8dbfa233ead14bfd0182..de8395c894b58f23ecc13673822b0c7e16ece463 100644 (file)
@@ -530,34 +530,6 @@ matrix:
             - libunwind8-dev
             - python3-pip
             - python3-setuptools
-    - env:
-        - LABEL="make Vulkan"
-        - BUILD=make
-        - MAKEFLAGS="-j4"
-        - MAKE_CHECK_COMMAND="make -C src/gtest check && make -C src/intel check"
-        - LLVM_VERSION=7
-        - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
-        - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl --with-platforms=x11,wayland"
-        - DRI_DRIVERS=""
-        - GALLIUM_ST="--enable-dri --enable-dri3 --disable-opencl --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa"
-        - GALLIUM_DRIVERS=""
-        - VULKAN_DRIVERS="intel,radeon"
-        - LIBUNWIND_FLAGS="--disable-libunwind"
-      addons:
-        apt:
-          sources:
-            - sourceline: 'deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main'
-              key_url: https://apt.llvm.org/llvm-snapshot.gpg.key
-          packages:
-            # From sources above
-            - llvm-7-dev
-            # Common
-            - xz-utils
-            - libexpat1-dev
-            - libx11-xcb-dev
-            - libelf-dev
-            - python3-pip
-            - python3-setuptools
     - env:
         - LABEL="scons"
         - BUILD=scons