Files
renderdoc/util/travis/linux_compile.sh
T
baldurk 6d85b9e990 Upgrade travis to run on bionic
* The python we were using on trusty was EOL and so breaking in sphinx. Rather
  than continuing on trusty, we upgrade to bionic and deliberately target gcc-5
  and clang-3.8 (the only thing we care about being old/minspec to ensure we
  don't break it).
2020-01-06 16:20:44 +00:00

29 lines
444 B
Bash
Executable File

#!/bin/sh
set -e
# Switch to the gcc/clang version we want
if [ $CC == "gcc" ]; then
export CC=gcc-5;
export CXX=g++-5;
else
export CC=clang-3.8;
export CXX=clang++-3.8;
fi
export QT_SELECT=qt5
mkdir build
cd build
if [[ "$RELEASE_BUILD" == "1" ]]; then
cmake -DCMAKE_BUILD_TYPE=Release ..
else
cmake -DCMAKE_BUILD_TYPE=Debug ..
fi
make -j2
echo "--- Running unit tests ---"
./bin/renderdoccmd test unit
./bin/qrenderdoc --unittest