Skip to content

Commit 94b75d5

Browse files
committed
Add gcc 7 compiler to Travis-CI
1 parent 86985df commit 94b75d5

File tree

1 file changed

+50
-11
lines changed

1 file changed

+50
-11
lines changed

.travis.yml

Lines changed: 50 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ cache:
1212

1313
matrix:
1414
include:
15-
# gcc default
15+
# gcc default (4.8)
1616
- compiler: gcc
1717
env:
1818
- CC=gcc
1919
- CXX=g++
20+
- CXXFLAGS="-Wall -Wextra -pedantic"
2021
# gcc 4.9 std=default
2122
- compiler: gcc
2223
addons:
@@ -28,6 +29,7 @@ matrix:
2829
env:
2930
- CC=gcc-4.9
3031
- CXX=g++-4.9
32+
- CXXFLAGS="-Wall -Wextra -pedantic"
3133
# gcc 5 std=c++03
3234
- compiler: gcc
3335
addons:
@@ -39,7 +41,7 @@ matrix:
3941
env:
4042
- CC=gcc-5
4143
- CXX=g++-5
42-
- CXXFLAGS="-std=c++03"
44+
- CXXFLAGS="-std=c++03 -Wall -Wextra -pedantic"
4345
# gcc 5 std=c++11
4446
- compiler: gcc
4547
addons:
@@ -51,7 +53,31 @@ matrix:
5153
env:
5254
- CC=gcc-5
5355
- CXX=g++-5
54-
- CXXFLAGS="-std=c++11"
56+
- CXXFLAGS="-std=c++11 -Wall -Wextra -pedantic"
57+
# gcc 5 default
58+
- compiler: gcc
59+
addons:
60+
apt:
61+
sources:
62+
- ubuntu-toolchain-r-test
63+
packages:
64+
- g++-5
65+
env:
66+
- CC=gcc-5
67+
- CXX=g++-5
68+
- CXXFLAGS="-Wall -Wextra -pedantic"
69+
# gcc 5 std=c++11
70+
- compiler: gcc
71+
addons:
72+
apt:
73+
sources:
74+
- ubuntu-toolchain-r-test
75+
packages:
76+
- g++-5
77+
env:
78+
- CC=gcc-5
79+
- CXX=g++-5
80+
- CXXFLAGS="-std=c++11 -Wall -Wextra -pedantic"
5581
# gcc 5 std=c++14
5682
- compiler: gcc
5783
addons:
@@ -63,7 +89,7 @@ matrix:
6389
env:
6490
- CC=gcc-5
6591
- CXX=g++-5
66-
- CXXFLAGS="-std=c++14"
92+
- CXXFLAGS="-std=c++14 -Wall -Wextra -pedantic"
6793
# gcc 5 std=c++1z
6894
- compiler: gcc
6995
addons:
@@ -75,7 +101,7 @@ matrix:
75101
env:
76102
- CC=gcc-5
77103
- CXX=g++-5
78-
- CXXFLAGS="-std=c++1z"
104+
- CXXFLAGS="-std=c++1z -Wall -Wextra -pedantic"
79105
# gcc 6 std=c++14
80106
- compiler: gcc
81107
addons:
@@ -85,8 +111,9 @@ matrix:
85111
packages:
86112
- g++-6
87113
env:
114+
- CC=gcc-6
88115
- CXX=g++-6
89-
- CXXFLAGS="-std=c++14"
116+
- CXXFLAGS="-std=c++14 -Wall -Wextra -pedantic"
90117
# gcc 6 std=c++1z
91118
- compiler: gcc
92119
addons:
@@ -98,19 +125,31 @@ matrix:
98125
env:
99126
- CC=gcc-6
100127
- CXX=g++-6
101-
- CXXFLAGS="-std=c++1z"
102-
# gcc 6 std=c++14 all warnings, pedantic
128+
- CXXFLAGS="-std=c++1z -Wall -Wextra -pedantic"
129+
# gcc 7 std=c++14
103130
- compiler: gcc
104131
addons:
105132
apt:
106133
sources:
107134
- ubuntu-toolchain-r-test
108135
packages:
109-
- g++-6
136+
- g++-7
110137
env:
111-
- CC=gcc-6
112-
- CXX=g++-6
138+
- CC=gcc-7
139+
- CXX=g++-7
113140
- CXXFLAGS="-std=c++14 -Wall -Wextra -pedantic"
141+
# gcc 7 std=c++1z
142+
- compiler: gcc
143+
addons:
144+
apt:
145+
sources:
146+
- ubuntu-toolchain-r-test
147+
packages:
148+
- g++-7
149+
env:
150+
- CC=gcc-7
151+
- CXX=g++-7
152+
- CXXFLAGS="-std=c++1z -Wall -Wextra -pedantic"
114153
# clang default
115154
- compiler: clang
116155
env:

0 commit comments

Comments
 (0)