[Mesa-dev] [PATCH 09/13] travis: add separate "scons" and "scons llvm" targets

Emil Velikov emil.l.velikov at gmail.com
Fri Apr 7 19:05:42 UTC 2017


From: Emil Velikov <emil.velikov at collabora.com>

The former does not require any LLVM, while the latter uses LLVM 3.3.

This way we'll quickly catch any LLVM 3.3+ functionality that gets
introduced where it shouldn't.

Add the full list of addons for each build permutation.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 .travis.yml | 57 +++++++++++++++++++++++++++++++++++++++++++--------------
 1 file changed, 43 insertions(+), 14 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index bd7ccb8917c..ebacf90c79d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,18 +7,6 @@ cache:
   apt: true
   ccache: true
 
-addons:
-  apt:
-    sources:
-      - llvm-toolchain-trusty-3.9
-    packages:
-      - x11proto-xf86vidmode-dev
-      - libexpat1-dev
-      - libx11-xcb-dev
-      - llvm-3.9-dev
-      - libelf-dev
-      - scons
-
 env:
   global:
     - XORG_RELEASES=http://xorg.freedesktop.org/releases/individual
@@ -35,8 +23,6 @@ env:
     - LIBXCB_VERSION=libxcb-1.11
     - LIBXSHMFENCE_VERSION=libxshmfence-1.2
     - LIBTXC_DXTN_VERSION=libtxc_dxtn-1.0.1
-    - LLVM_VERSION=3.9
-    - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
     - PKG_CONFIG_PATH=$HOME/prefix/lib/pkgconfig
     - LD_LIBRARY_PATH="$HOME/prefix/lib:$LD_LIBRARY_PATH"
 
@@ -46,10 +32,53 @@ matrix:
         - LABEL="make"
         - BUILD=make
         - MAKEFLAGS=-j2
+        - LLVM_VERSION=3.9
+        - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
+      addons:
+        apt:
+          sources:
+            - llvm-toolchain-trusty-3.9
+          packages:
+            # From sources above
+            - llvm-3.9-dev
+            # Common
+            - x11proto-xf86vidmode-dev
+            - libexpat1-dev
+            - libx11-xcb-dev
+            - libelf-dev
+    - env:
+        - LABEL="scons"
+        - BUILD=scons
+        # Explicitly disable.
+        - SCONS_TARGET="llvm=0"
+      addons:
+        apt:
+          packages:
+            - scons
+            # Common
+            - x11proto-xf86vidmode-dev
+            - libexpat1-dev
+            - libx11-xcb-dev
+            - libelf-dev
     - env:
         - LABEL="scons LLVM"
         - BUILD=scons
         - SCONS_TARGET="llvm=1"
+        - LLVM_VERSION=3.3
+        - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
+      addons:
+        apt:
+          sources:
+            - llvm-toolchain-trusty-3.3
+          packages:
+            - scons
+            # From sources above
+            - llvm-3.3-dev
+            # Common
+            - x11proto-xf86vidmode-dev
+            - libexpat1-dev
+            - libx11-xcb-dev
+            - libelf-dev
 
 install:
   - pip install --user mako
-- 
2.11.1



More information about the mesa-dev mailing list