Skip to content

Commit d26d3e3

Browse files
authored
add some more compilers
1 parent 923dc5c commit d26d3e3

File tree

1 file changed

+108
-7
lines changed

1 file changed

+108
-7
lines changed

.travis.yml

Lines changed: 108 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,130 @@
11
language: cpp
22
dist: trusty
3-
sudo: required
4-
group: edge
3+
sudo: false
54

6-
compiler:
7-
- gcc
85
matrix:
96
include:
107
# build on ubuntu
118
- os: linux
12-
compiler: gcc
9+
addons:
10+
apt:
11+
sources:
12+
- ubuntu-toolchain-r-test
13+
packages:
14+
- g++-4.9
1315
env:
1416
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
17+
18+
- os: linux
1519
addons:
1620
apt:
1721
sources:
1822
- ubuntu-toolchain-r-test
1923
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+
21117
# build on osx
118+
- os: osx
119+
osx_image: xcode8
120+
22121
- os: osx
23122
osx_image: xcode9.1
123+
24124
before_install:
25125
- eval "${MATRIX_EVAL}"
126+
26127
script:
27128
- mkdir build
28129
- cd build
29-
- cmake .. && make
130+
- cmake .. && make && ./jsonrpcpp_example

0 commit comments

Comments
 (0)