| # Everything under apt is only used on linux |
| # PPAs to get newer toolchains |
| - ubuntu-toolchain-r-test |
| # PPA to get a semi-recent cmake (3.2) |
| - george-edison55-precise-backports |
| # Get a newer CMake than the 2.8 default |
| # 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 |
| # Install dependencies required on OSX |
| - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install ninja; fi |
| - if [ "$TRAVIS_OS_NAME" == "osx" ]; then pip install jinja2; fi |
| # Use the more recent compilers we just installed |
| - if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$CXX" == "g++" ]; then export CXX="g++-6" CC="gcc-6"; fi |
| - if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$CXX" == "clang++" ]; then export CXX="clang++-5.0" CC="clang-5.0"; fi |
| - cmake -G "Ninja" -DCMAKE_BUILD_TYPE=$BUILD_TYPE .. |
| - ./src/tests/nxt_unittests |