Skip to content

Commit b75c151

Browse files
committed
Merge branch 'develop'
2 parents 5420eb7 + 40bb411 commit b75c151

File tree

243 files changed

+7379
-4743
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

243 files changed

+7379
-4743
lines changed

.coveragerc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[run]
2-
source = pygccxml,docs/example,unittests
2+
source = pygccxml,docs/examples,unittests
33
# unittest/misc contains some tests that are just there for debugging
44
# purposes and which do not need to be covered.
55
omit = unittests/misc

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
README.rst merge=ours

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ dist
99
build
1010
pygccxml.egg-info
1111
*.prof
12-
.coverage
12+
.coverage*
13+
docs/examples/caching/example.hpp.xml
14+
test_cost.log

.travis.yml

+84-2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,68 @@ matrix:
2727
- os: linux
2828
python: 3.5
2929
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
3092
- os: osx
3193
osx_image: xcode7.2
3294
language: generic
@@ -52,13 +114,13 @@ before_install:
52114
# Download castxml binaries
53115
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
54116
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};
56118
fi;
57119
fi
58120

59121
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ $XML_GENERATOR == "castxml" ]]; then
60122
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};
62124
fi;
63125
fi
64126

@@ -71,6 +133,26 @@ before_install:
71133
- if [[ "$XML_GENERATOR" == "gccxml" ]]; then sudo apt-get update -qq; fi
72134
- if [[ "$XML_GENERATOR" == "gccxml" ]]; then sudo apt-get install -qq gccxml; fi
73135

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+
74156
# Install pep8, needed by the unit tests
75157
- pip install pep8
76158

0 commit comments

Comments
 (0)