| # Everything under apt is only used on linux |
| - llvm-toolchain-trusty-6.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++-6.0" CC="clang-6.0"; fi |
| - cmake -G "Ninja" -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DDAWN_USE_WERROR=1 .. |
| - cmake --build . -- -j 1 |
| # Get out of the build dir |
| - if [ "$TRAVIS_OS_NAME" == "linux" ]; then ./scripts/travis_lint_format.sh clang-format-8; fi |