Sourcing files that set flags bleed into Travis' wrapper script, which messes with their workflow, e.g. preventing after_failure scripts from triggering. These changes fix that: * Move exported variables from install.sh to setup.sh, so install.sh doesn't have to be sourced. * Source setup.sh from run.sh, rather than directly from .travis.yml. In addition, as a good practice, remove `set -e` etc. from setup.sh, and add a comment not to add them back. It's the sourcing script's responsibility to set these flags.
29 lines
874 B
Bash
Executable File
29 lines
874 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# This script is sourced; do not set -e or -o pipefail here.
|
|
|
|
# Ensure mason is on the 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
|