|
| 1 | +language: cpp |
| 2 | +sudo: false |
| 3 | + |
| 4 | +matrix: |
| 5 | + include: |
| 6 | + - compiler: clang |
| 7 | + env: COMPILER=clang++-3.6 |
| 8 | + addons: |
| 9 | + apt: |
| 10 | + sources: &sources |
| 11 | + - boost-latest |
| 12 | + - llvm-toolchain-precise-3.6 |
| 13 | + - llvm-toolchain-precise-3.7 |
| 14 | + - llvm-toolchain-precise-3.8 |
| 15 | + - ubuntu-toolchain-r-test |
| 16 | + packages: |
| 17 | + - clang-3.6 |
| 18 | + - libstdc++-5-dev |
| 19 | + - libboost1.55-dev |
| 20 | + - libboost-iostreams1.55-dev |
| 21 | + - libboost-program-options1.55-dev |
| 22 | + - ninja-build |
| 23 | + - python-virtualenv |
| 24 | + - compiler: clang |
| 25 | + env: COMPILER=clang++-3.7 |
| 26 | + addons: |
| 27 | + apt: |
| 28 | + sources: *sources |
| 29 | + packages: |
| 30 | + - clang-3.7 |
| 31 | + - libstdc++-5-dev |
| 32 | + - libboost1.55-dev |
| 33 | + - libboost-iostreams1.55-dev |
| 34 | + - libboost-program-options1.55-dev |
| 35 | + - ninja-build |
| 36 | + - python-virtualenv |
| 37 | + - compiler: clang |
| 38 | + env: COMPILER=clang++-3.8 |
| 39 | + addons: |
| 40 | + apt: |
| 41 | + sources: *sources |
| 42 | + packages: |
| 43 | + - clang-3.8 |
| 44 | + - libstdc++-5-dev |
| 45 | + - libboost1.55-dev |
| 46 | + - libboost-iostreams1.55-dev |
| 47 | + - libboost-program-options1.55-dev |
| 48 | + - ninja-build |
| 49 | + - python-virtualenv |
| 50 | + - compiler: gcc |
| 51 | + # GCC doesn't like building in parallel on ninja. No idea why. |
| 52 | + env: COMPILER=g++-5 BUILD_ARGS="-j1" |
| 53 | + addons: |
| 54 | + apt: |
| 55 | + sources: *sources |
| 56 | + packages: |
| 57 | + - g++-5 |
| 58 | + - libboost1.55-dev |
| 59 | + - libboost-iostreams1.55-dev |
| 60 | + - libboost-program-options1.55-dev |
| 61 | + - ninja-build |
| 62 | + - python-virtualenv |
| 63 | + - compiler: gcc |
| 64 | + env: COMPILER=g++-6 BUILD_ARGS="-j1" |
| 65 | + addons: |
| 66 | + apt: |
| 67 | + sources: *sources |
| 68 | + packages: |
| 69 | + - g++-6 |
| 70 | + - libboost1.55-dev |
| 71 | + - libboost-iostreams1.55-dev |
| 72 | + - libboost-program-options1.55-dev |
| 73 | + - ninja-build |
| 74 | + - python-virtualenv |
| 75 | + - os: osx |
| 76 | + osx_image: xcode7.2 |
| 77 | + env: COMPILER=clang++ BACKEND=ninja |
| 78 | + |
| 79 | +cache: |
| 80 | + apt: true |
| 81 | + |
| 82 | +install: |
| 83 | + - | |
| 84 | + if [ "${TRAVIS_OS_NAME}" = "osx" ]; then |
| 85 | + brew update |
| 86 | + brew install ninja |
| 87 | + brew install python |
| 88 | + # For some reason, Homebrew's Python thinks msbuild will get installed by |
| 89 | + # bfg9000, and so is grumpy about not having lxml. |
| 90 | + pip install lxml |
| 91 | + else |
| 92 | + virtualenv env && source env/bin/activate |
| 93 | + pip install -U setuptools |
| 94 | + fi |
| 95 | + - pip install bfg9000 |
| 96 | + - | |
| 97 | + git clone https://github.com/jimporter/mettle.git |
| 98 | + pushd mettle |
| 99 | + CXX=${COMPILER} CXXFLAGS="-I`pwd`/../include" 9k build --backend=ninja --prefix=$HOME |
| 100 | + cd build |
| 101 | + ninja install |
| 102 | + popd |
| 103 | +script: |
| 104 | + - | |
| 105 | + CXX=${COMPILER} CXXFLAGS="-Wall -Wextra -pedantic -I$HOME/include" LIBRARY_PATH="$HOME/lib" 9k build --backend=ninja |
| 106 | + cd build |
| 107 | + ninja test |
0 commit comments