summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-11-03 16:46:58 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2016-11-04 18:43:08 +0200
commitc5c3145b9a97158145892b645346f6fa6b7e679b (patch)
treebb186e3a0a5ea27d40a105ae606ff7109e4d68dd /scripts
parente66cc2e583b8a56f1c9ace613c9bf6c1d0643712 (diff)
downloadqtlocation-mapboxgl-c5c3145b9a97158145892b645346f6fa6b7e679b.tar.gz
[linux] Update target headless backends
Enable OSMesa backend via WITH_OSMESA=1 envvar. OSMesa backend uses Gallium OSMesa implementation, which uses LLVMpipe as default driver.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/travis_setup.sh28
1 files changed, 14 insertions, 14 deletions
diff --git a/scripts/travis_setup.sh b/scripts/travis_setup.sh
index ae8dda46b5..6fa1cc858c 100755
--- a/scripts/travis_setup.sh
+++ b/scripts/travis_setup.sh
@@ -30,16 +30,6 @@ ${CXX} --version
# Ensure mason is on the PATH
export PATH="`pwd`/.mason:${PATH}" MASON_DIR="`pwd`/.mason"
-# Start the mock X server
-if [ -f /etc/init.d/xvfb ] ; then
- mapbox_time "start_xvfb" \
- sh -e /etc/init.d/xvfb start
- sleep 2 # sometimes, xvfb takes some time to start up
-fi
-
-# Make sure we're connecting to xvfb
-export DISPLAY=:99.0
-
mapbox_time "checkout_mason" \
git submodule update --init .mason
@@ -47,10 +37,20 @@ git submodule update --init .mason
mapbox_time "touch_package_json" \
touch package.json
-# Install and set up to load a more recent version of mesa
-mapbox_time "install_mesa" \
-mason install mesa 11.2.2
-export LD_LIBRARY_PATH="`mason prefix mesa 11.2.2`/lib:${LD_LIBRARY_PATH:-}"
+# Start the mock X server
+if [ -f /etc/init.d/xvfb ] && [ -z "${WITH_OSMESA}" ]; then
+ mapbox_time "start_xvfb" \
+ sh -e /etc/init.d/xvfb start
+ sleep 2 # sometimes, xvfb takes some time to start up
+
+ # Make sure we're connecting to xvfb
+ export DISPLAY=:99.0
+
+ # Install and set up to load a more recent version of mesa
+ mapbox_time "install_mesa" \
+ mason install mesa 11.2.2
+ export LD_LIBRARY_PATH="`mason prefix mesa 11.2.2`/lib:${LD_LIBRARY_PATH:-}"
+fi
# Install and set up to load awscli
pip install --user awscli