|
1 | 1 | language: cpp |
2 | 2 | dist: trusty |
3 | | -sudo: required |
4 | | -group: edge |
| 3 | +sudo: false |
5 | 4 |
|
6 | | -compiler: |
7 | | - - gcc |
8 | 5 | matrix: |
9 | 6 | include: |
10 | 7 | # build on ubuntu |
11 | 8 | - os: linux |
12 | | - compiler: gcc |
| 9 | + addons: |
| 10 | + apt: |
| 11 | + sources: |
| 12 | + - ubuntu-toolchain-r-test |
| 13 | + packages: |
| 14 | + - g++-4.9 |
13 | 15 | env: |
14 | 16 | - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9" |
| 17 | + |
| 18 | + - os: linux |
15 | 19 | addons: |
16 | 20 | apt: |
17 | 21 | sources: |
18 | 22 | - ubuntu-toolchain-r-test |
19 | 23 | packages: |
20 | | - - g++-4.9 |
| 24 | + - g++-5 |
| 25 | + env: |
| 26 | + - MATRIX_EVAL="CC=gcc-5 && CXX=g++-5" |
| 27 | + |
| 28 | + - os: linux |
| 29 | + addons: |
| 30 | + apt: |
| 31 | + sources: |
| 32 | + - ubuntu-toolchain-r-test |
| 33 | + packages: |
| 34 | + - g++-6 |
| 35 | + env: |
| 36 | + - MATRIX_EVAL="CC=gcc-6 && CXX=g++-6" |
| 37 | + |
| 38 | + - os: linux |
| 39 | + addons: |
| 40 | + apt: |
| 41 | + sources: |
| 42 | + - ubuntu-toolchain-r-test |
| 43 | + packages: |
| 44 | + - g++-7 |
| 45 | + env: |
| 46 | + - MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" |
| 47 | + |
| 48 | + # works on Precise and Trusty |
| 49 | + - os: linux |
| 50 | + addons: |
| 51 | + apt: |
| 52 | + sources: |
| 53 | + - ubuntu-toolchain-r-test |
| 54 | + - llvm-toolchain-precise-3.6 |
| 55 | + packages: |
| 56 | + - clang-3.6 |
| 57 | + env: |
| 58 | + - MATRIX_EVAL="CC=clang-3.6 && CXX=clang++-3.6" |
| 59 | + |
| 60 | + # works on Precise and Trusty |
| 61 | + - os: linux |
| 62 | + addons: |
| 63 | + apt: |
| 64 | + sources: |
| 65 | + - ubuntu-toolchain-r-test |
| 66 | + - llvm-toolchain-precise-3.7 |
| 67 | + packages: |
| 68 | + - clang-3.7 |
| 69 | + env: |
| 70 | + - MATRIX_EVAL="CC=clang-3.7 && CXX=clang++-3.7" |
| 71 | + |
| 72 | + # works on Precise and Trusty |
| 73 | + - os: linux |
| 74 | + addons: |
| 75 | + apt: |
| 76 | + sources: |
| 77 | + - ubuntu-toolchain-r-test |
| 78 | + - llvm-toolchain-precise-3.8 |
| 79 | + packages: |
| 80 | + - clang-3.8 |
| 81 | + env: |
| 82 | + - MATRIX_EVAL="CC=clang-3.8 && CXX=clang++-3.8" |
| 83 | + |
| 84 | + # works on Trusty |
| 85 | + - os: linux |
| 86 | + addons: |
| 87 | + apt: |
| 88 | + sources: |
| 89 | + - llvm-toolchain-trusty-3.9 |
| 90 | + packages: |
| 91 | + - clang-3.9 |
| 92 | + env: |
| 93 | + - MATRIX_EVAL="CC=clang-3.9 && CXX=clang++-3.9" |
| 94 | + |
| 95 | + # works on Trusty |
| 96 | + - os: linux |
| 97 | + addons: |
| 98 | + apt: |
| 99 | + sources: |
| 100 | + - llvm-toolchain-trusty-4.0 |
| 101 | + packages: |
| 102 | + - clang-4.0 |
| 103 | + env: |
| 104 | + - MATRIX_EVAL="CC=clang-4.0 && CXX=clang++-4.0" |
| 105 | + |
| 106 | + # works on Trusty |
| 107 | + - os: linux |
| 108 | + addons: |
| 109 | + apt: |
| 110 | + sources: |
| 111 | + - llvm-toolchain-trusty-5.0 |
| 112 | + packages: |
| 113 | + - clang-5.0 |
| 114 | + env: |
| 115 | + - MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0" |
| 116 | + |
21 | 117 | # build on osx |
| 118 | + - os: osx |
| 119 | + osx_image: xcode8 |
| 120 | + |
22 | 121 | - os: osx |
23 | 122 | osx_image: xcode9.1 |
| 123 | + |
24 | 124 | before_install: |
25 | 125 | - eval "${MATRIX_EVAL}" |
| 126 | + |
26 | 127 | script: |
27 | 128 | - mkdir build |
28 | 129 | - cd build |
29 | | - - cmake .. && make |
| 130 | + - cmake .. && make && ./jsonrpcpp_example |
0 commit comments