Newer
Older
#!/bin/bash
# Build and run tests with Travis CI.
set -e
root=$PWD
mkdir build
cd build
# Configure.
if [ "$CC" == "gcc" ]; then
# GCC build generates coverage.
qmake CONFIG+=debug QMAKE_CXXFLAGS+=--coverage QMAKE_LFLAGS+=--coverage ..
fi
# Build.
make
# Run tests.
export DISPLAY=:99.0
sh -e /etc/init.d/xvfb start
sleep 3
openbox &
./copyq tests