Files
MapLibreParticleLab/scripts/linux/setup.sh
Mike Morris 6b90079139 break out setup.sh from run.sh
chmod +x

drop travis_helper from android and ios

source travis_helper.sh before_install

only run setup.sh if file exists

explicitly local paths

explicit if statement in before_install

source setup.sh
2015-05-07 15:50:46 -04:00

31 lines
827 B
Bash
Executable File

#!/usr/bin/env bash
set -e
set -o pipefail
# Add Mason to PATH
export PATH="`pwd`/.mason:${PATH}" MASON_DIR="`pwd`/.mason"
# Set the core file limit to unlimited so a core file is generated upon crash
ulimit -c unlimited -S
################################################################################
# X Server setup
################################################################################
# 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
# Make sure we're loading the 10.4.3 libs we installed manually
export LD_LIBRARY_PATH="`mason prefix mesa 10.4.3`/lib:${LD_LIBRARY_PATH:-}"
mapbox_time "glxinfo" \
glxinfo