libglvnd/.gitlab-ci/run_build.sh
Kyle Brenneman 27251993ba gitlab-ci: Use xvfb-run
Change the CI scripts to use xvfb-run instead of running Xvfb directly.

That avoids a potential race condition, where a test could fail because Xvfb
hasn't started listening for connections yet. xvfb-run will wait for Xvfb to be
ready before it runs any other programs.

That also simplifies error handling, because the CI scripts can just use
"set -e" instead of having to store the exit code, kill Xvfb, and then check
for an error.
2019-12-13 07:05:41 -07:00

16 lines
175 B
Bash

#!/bin/bash
set -e
set -o xtrace
./autogen.sh
mkdir build
cd build
../configure $CONFIGURE_OPTIONS
make V=1 VERBOSE=1
xvfb-run --auto-servernum make check V=1 VERBOSE=1