@@ -27,6 +27,68 @@ matrix:
27
27
- os : linux
28
28
python : 3.5
29
29
env : XML_GENERATOR="castxml"
30
+ - os : linux
31
+ python : 3.5
32
+ env :
33
+ - XML_GENERATOR="castxml"
34
+ - COMPILER=g++-5
35
+ addons :
36
+ apt :
37
+ sources :
38
+ - ubuntu-toolchain-r-test
39
+ packages :
40
+ # gcc 5.2.1
41
+ - g++-5
42
+ - os : linux
43
+ dist : trusty
44
+ sudo : required
45
+ python : 3.5
46
+ env : XML_GENERATOR="castxml"
47
+ - os : linux
48
+ dist : trusty
49
+ sudo : required
50
+ python : 3.5
51
+ env :
52
+ # gcc 4.8.2 with c++03
53
+ - XML_GENERATOR="castxml"
54
+ - CPPSTD="-std=c++03"
55
+ - os : linux
56
+ dist : trusty
57
+ sudo : required
58
+ python : 3.5
59
+ env :
60
+ # gcc 4.8.2 with c++11
61
+ - XML_GENERATOR="castxml"
62
+ - CPPSTD="-std=c++11"
63
+ - os : linux
64
+ dist : trusty
65
+ sudo : required
66
+ python : 3.5
67
+ env :
68
+ - XML_GENERATOR="castxml"
69
+ - COMPILER=g++-5
70
+ addons :
71
+ apt :
72
+ sources :
73
+ - ubuntu-toolchain-r-test
74
+ packages :
75
+ # gcc 5.3.0
76
+ - g++-5
77
+ - os : linux
78
+ dist : trusty
79
+ sudo : required
80
+ python : 3.5
81
+ env :
82
+ - XML_GENERATOR="castxml"
83
+ - COMPILER=g++-5
84
+ - CPPSTD="-std=c++14"
85
+ addons :
86
+ apt :
87
+ sources :
88
+ - ubuntu-toolchain-r-test
89
+ packages :
90
+ # gcc 5.3.0
91
+ - g++-5
30
92
- os : osx
31
93
osx_image : xcode7.2
32
94
language : generic
@@ -52,13 +114,13 @@ before_install:
52
114
# Download castxml binaries
53
115
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
54
116
if [ ! -e ${HOME}/castxml ]; then
55
- curl https://midas3.kitware.com/midas/download/item/318762 /castxml-macosx.tar.gz | tar zxf - -C ${HOME};
117
+ wget -O - https://midas3.kitware.com/midas/download/bitstream/460403 /castxml-macosx.tar.gz | tar zxf - -C ${HOME};
56
118
fi;
57
119
fi
58
120
59
121
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ $XML_GENERATOR == "castxml" ]]; then
60
122
if [ ! -e ${HOME}/castxml ]; then
61
- wget -O - https://midas3.kitware.com/midas/download/item/318227 /castxml-linux.tar.gz | tar zxf - -C ${HOME};
123
+ wget -O - https://midas3.kitware.com/midas/download/bitstream/460468 /castxml-linux.tar.gz | tar zxf - -C ${HOME};
62
124
fi;
63
125
fi
64
126
@@ -71,6 +133,26 @@ before_install:
71
133
- if [[ "$XML_GENERATOR" == "gccxml" ]]; then sudo apt-get update -qq; fi
72
134
- if [[ "$XML_GENERATOR" == "gccxml" ]]; then sudo apt-get install -qq gccxml; fi
73
135
136
+ # Patch the c++ version to test on the fly
137
+ - if [[ $CPPSTD == "-std=c++03" ]]; then
138
+ cd unittests && sed -i s%compiler=None,%compiler=None,\\n\ \ \ \ \ \ \ \ cflags=\"-std=c++03\",%g autoconfig.py && cd ..;
139
+ fi
140
+
141
+ # Patch the c++ version to test on the fly
142
+ - if [[ $CPPSTD == "-std=c++11" ]]; then
143
+ cd unittests && sed -i s%compiler=None,%compiler=None,\\n\ \ \ \ \ \ \ \ cflags=\"-std=c++11\",%g autoconfig.py && cd ..;
144
+ fi
145
+
146
+ # Patch the c++ version to test on the fly
147
+ - if [[ $CPPSTD == "-std=c++14" ]]; then
148
+ cd unittests && sed -i s%compiler=None,%compiler=None,\\n\ \ \ \ \ \ \ \ cflags=\"-std=c++14\",%g autoconfig.py && cd ..;
149
+ fi
150
+
151
+ # Patch the compiler path on the fly for gcc5 testing
152
+ - if [[ "$COMPILER" == "g++-5" ]] && [[ $XML_GENERATOR == "castxml" ]]; then
153
+ cd unittests && sed -i s%compiler=None%compiler=\"/usr/bin/g++-5\"%g autoconfig.py && cd ..;
154
+ fi
155
+
74
156
# Install pep8, needed by the unit tests
75
157
- pip install pep8
76
158
0 commit comments