| # Everything under apt is only used on linux |
| - llvm-toolchain-trusty-5.0 |
| # PPA for a more recen libstdc++ |
| - ubuntu-toolchain-r-test |
| # Pull a recent version of libstdc++ |
| # Ninja builds are faster |
| # Required for the code generator, unfortunately this is jinja2 2.6 which lacks some of the options we use |
| # Required dependency for GLFW on Linux |
| # Format using the latest and greatest |
| - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi |
| # Install dependencies required on OSX |
| - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install ninja; fi |
| - if [ "$TRAVIS_OS_NAME" == "osx" ]; then pip2 install --user jinja2; fi |
| # Use the more recent compilers we just installed |
| - if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$CXX" == "clang++" ]; then export CXX="clang++-5.0" CC="clang-5.0"; fi |
| # Build the Vulkan backend on Linux |
| - if [ "$TRAVIS_OS_NAME" == "linux" ]; then export BUILD_VULKAN=1; else export BUILD_VULKAN=0; fi |
| - cmake -G "Ninja" -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DNXT_USE_WERROR=1 -DNXT_ENABLE_VULKAN=$BUILD_VULKAN .. |
| # Get out of the build dir |
| - if [ "$TRAVIS_OS_NAME" == "linux" ]; then ./scripts/travis_lint_format.sh clang-format-7; fi |