]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | language: cpp |
2 | sudo: required | |
3 | dist: trusty | |
4 | os: linux | |
5 | matrix: | |
6 | include: | |
7 | - compiler: clang | |
8 | env: CXX_VER=3.4 TOOLSET=clang STD=c++98 | |
9 | addons: &doc | |
10 | apt: | |
11 | packages: | |
12 | - doxygen | |
13 | - xsltproc | |
14 | install: | |
15 | - "sudo pip install pep8 pylint" | |
16 | - compiler: clang | |
17 | env: CXX_VER=3.5.2 TOOLSET=clang STD=c++98 | |
18 | addons: &clang35 | |
19 | apt: | |
20 | sources: | |
21 | - ubuntu-toolchain-r-test | |
22 | packages: | |
23 | - doxygen | |
24 | - xsltproc | |
25 | install: &iclang35 | |
26 | - "echo \"using clang : 3.5 : clang++ ;\" > ~/user-config.jam" | |
27 | - "sudo pip install pep8 pylint" | |
28 | - compiler: clang | |
29 | env: CXX_VER=3.5.2 TOOLSET=clang STD=c++11 | |
30 | addons: *clang35 | |
31 | install: *iclang35 | |
32 | - compiler: clang | |
33 | env: CXX_VER=3.6.2 TOOLSET=clang STD=c++98 | |
34 | addons: &clang36 | |
35 | apt: | |
36 | sources: | |
37 | - ubuntu-toolchain-r-test | |
38 | packages: | |
39 | - doxygen | |
40 | - xsltproc | |
41 | install: &iclang36 | |
42 | - "echo \"using clang : 3.6 : clang++ ;\" > ~/user-config.jam" | |
43 | - "sudo pip install pep8 pylint" | |
44 | - compiler: clang | |
45 | env: CXX_VER=3.6.2 TOOLSET=clang STD=c++11 | |
46 | addons: *clang36 | |
47 | install: *iclang36 | |
48 | - compiler: gcc | |
49 | env: CXX_VER=4.6 TOOLSET=gcc STD=c++98 | |
50 | addons: *doc | |
51 | addons: &gcc46 | |
52 | apt: | |
53 | sources: | |
54 | - ubuntu-toolchain-r-test | |
55 | packages: | |
56 | - g++-4.6 | |
57 | - doxygen | |
58 | - xsltproc | |
59 | install: &igcc47 | |
60 | - "echo \"using gcc : 4.6 : g++-4.6 ;\" > ~/user-config.jam" | |
61 | - "sudo pip install pep8 pylint" | |
62 | - compiler: gcc | |
63 | env: CXX_VER=4.7 TOOLSET=gcc STD=c++98 | |
64 | addons: &gcc47 | |
65 | apt: | |
66 | sources: | |
67 | - ubuntu-toolchain-r-test | |
68 | packages: | |
69 | - g++-4.7 | |
70 | - doxygen | |
71 | - xsltproc | |
72 | install: &igcc47 | |
73 | - "echo \"using gcc : 4.7 : g++-4.7 ;\" > ~/user-config.jam" | |
74 | - "sudo pip install pep8 pylint" | |
75 | - compiler: gcc | |
76 | env: CXX_VER=4.7 TOOLSET=gcc STD=c++11 | |
77 | addons: *gcc47 | |
78 | install: *igcc47 | |
79 | - compiler: gcc | |
80 | env: CXX_VER=4.8 TOOLSET=gcc STD=c++98 | |
81 | addons: &gcc48 | |
82 | apt: | |
83 | sources: | |
84 | - ubuntu-toolchain-r-test | |
85 | packages: | |
86 | - g++-4.8 | |
87 | - doxygen | |
88 | - xsltproc | |
89 | install: &igcc48 | |
90 | - "echo \"using gcc : 4.8 : g++-4.8 ;\" > ~/user-config.jam" | |
91 | - "sudo pip install pep8 pylint" | |
92 | - compiler: gcc | |
93 | env: CXX_VER=4.8 TOOLSET=gcc STD=c++11 | |
94 | addons: *gcc48 | |
95 | install: *igcc48 | |
96 | - compiler: gcc | |
97 | env: CXX_VER=4.9 TOOLSET=gcc STD=c++98 | |
98 | addons: &gcc49 | |
99 | apt: | |
100 | sources: | |
101 | - ubuntu-toolchain-r-test | |
102 | packages: | |
103 | - g++-4.9 | |
104 | - doxygen | |
105 | - xsltproc | |
106 | install: &igcc49 | |
107 | - "echo \"using gcc : 4.9 : g++-4.9 ;\" > ~/user-config.jam" | |
108 | - "sudo pip install pep8 pylint" | |
109 | - compiler: gcc | |
110 | env: CXX_VER=4.9 TOOLSET=gcc STD=c++11 | |
111 | addons: *gcc49 | |
112 | install: *igcc49 | |
113 | script: | |
114 | - if which pep8; then pep8 tools/string_headers.py; fi | |
115 | - if which pylint; then pylint tools/string_headers.py; fi | |
116 | - if [ "TOOLSET" == "clang" ]; then tools/get_clang.sh ${CXX_VER}; fi | |
117 | - export PATH="${PWD}:${PATH}" | |
118 | - if [ "${STD}" ]; then CXXFLAGS="cxxflags=\"-std=${STD}\""; fi | |
119 | - echo "using doxygen ;" >> ~/user-config.jam | |
120 | - echo "using xsltproc ;" >> ~/user-config.jam | |
121 | - echo "using quickbook ;" >> ~/user-config.jam | |
122 | - tools/build_environment.py --dep_json tools/deps.json --action checkout --out .boost | |
123 | - cd .boost | |
124 | - cd libs | |
125 | - mkdir metaparse | |
126 | - mv ../../* ../../.git ../../.travis.yml metaparse | |
127 | - cd .. | |
128 | - cd tools/boostbook | |
129 | - wget http://abel.web.elte.hu/boost_book_dependencies/docbook-xml-4.2.zip | |
130 | - wget http://abel.web.elte.hu/boost_book_dependencies/docbook-xsl-1.75.2.tar.gz | |
131 | - wget http://abel.web.elte.hu/boost_book_dependencies/fop-0.94-bin-jdk1.4.tar.gz | |
132 | - ./setup_boostbook.sh | |
133 | - cd ../.. | |
134 | - cat ~/user-config.jam | |
135 | - ./bootstrap.sh --with-toolset=$TOOLSET | |
136 | - ./b2 headers | |
137 | - cd libs | |
138 | - cd test/build | |
139 | - ../../../b2 -d+2 | |
140 | - cd ../.. | |
141 | - cd metaparse | |
142 | - echo "Checking if all automatically generated files are up to date" | |
143 | - rm doc/getting_started_*.qbk doc/before_*.qbk example/getting_started/*.hpp | |
144 | - tools/generate_all.py | |
145 | - git add -N . | |
146 | - git diff --exit-code | |
147 | - echo "Building the unit tests and the examples" | |
148 | - cd build | |
149 | - ../../../b2 -d+2 ${CXXFLAGS} | |
150 | - sed -i 's/#include <boost\/metaparse\/[^/]*\.hpp>/#include <boost\/metaparse.hpp>/' ../test/*.?pp | |
151 | - ../../../b2 -d+2 ${CXXFLAGS} | |
152 | - cd .. | |
153 | - echo "Generating the documentation" | |
154 | - cd doc | |
155 | - ../../../b2 boostdoc | |
156 |