Skip to content

Commit 4a32bcc

Browse files
authored
Merge pull request #131 from boostorg/circle_ci_inspect
clean up inspection failures and add circle-ci testing.
2 parents cbf7c56 + 741b8b3 commit 4a32bcc

File tree

5 files changed

+75
-0
lines changed

5 files changed

+75
-0
lines changed

.circleci/config.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
version: 2
2+
3+
jobs:
4+
build:
5+
environment:
6+
- BOOST_LIBRARY=type_traits
7+
- CXX_STANDARD=gnu++11
8+
docker:
9+
- image: gcc:7
10+
steps:
11+
- checkout
12+
- run:
13+
name: Setting up Environment
14+
command: |
15+
echo 'export BOOST="$HOME/boost-local"' >> $BASH_ENV
16+
if [ $CIRCLE_BRANCH = "master" ]; then
17+
echo 'export BOOST_BRANCH="master"' >> $BASH_ENV;
18+
else
19+
echo 'export BOOST_BRANCH="develop"' >> $BASH_ENV;
20+
fi
21+
echo 'export BOOST_REMOVE="$BOOST/boost/libs/$BOOST_LIBRARY"' >> $BASH_ENV
22+
HOME_SED_=$(echo $HOME | sed -e 's/\//\\\//g')
23+
echo 'export HOME_SED=$HOME_SED_' >> $BASH_ENV
24+
- run:
25+
name: install pre dependencies
26+
command: |
27+
apt-get update -yqq
28+
apt-get install git xsltproc docbook-xsl docbook-xml -y
29+
- run:
30+
name: Initializing git repo for boost
31+
command: |
32+
echo BOOST=$BOOST BOOST_REMOVE=$BOOST_REMOVE BOOST_LIBRARY=$BOOST_LIBRARY BOOST_BRANCH=$BOOST_BRANCH PWD=$PWD
33+
mkdir $BOOST
34+
cd $BOOST
35+
git clone --single-branch --branch $BOOST_BRANCH https://github.com/boostorg/boost.git
36+
cd boost
37+
git submodule update --init --merge
38+
rm -rf $BOOST_REMOVE
39+
mv $HOME/project $BOOST_REMOVE
40+
- run:
41+
name: Bootstrapping boost-build
42+
command: |
43+
cd $BOOST/boost && ./bootstrap.sh && ./b2 headers
44+
echo "using xsltproc ;" | tee $HOME/user-config.jam
45+
echo "using boostbook : /usr/share/xml/docbook/stylesheet/docbook-xsl : /usr/share/sgml/docbook/dtd/xml/4.2 ;" | tee -a $HOME/user-config.jam
46+
- run:
47+
name: Building inspect
48+
command: |
49+
cd $BOOST/boost/tools/inspect/build && ../../../b2 -j2 address-model=64 architecture=x86 toolset=gcc cxxflags="-std=gnu++14" release dist-bin
50+
- run:
51+
name: Building docs
52+
command: |
53+
cd $BOOST_REMOVE/doc && rm -rf html && ../../../b2 -j2 address-model=64 architecture=x86 toolset=gcc cxxflags="-std=gnu++14" release
54+
- run:
55+
name: Running Inspect
56+
command: |
57+
cd $BOOST_REMOVE && ../../dist/bin/inspect -text

meta/explicit-failures-markup.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,3 +236,9 @@
236236
</mark-expected-failures>
237237
</library>
238238
</explicit-failures-markup>
239+
<!--
240+
(C) Copyright Nikita Kniazev 2019.
241+
Use, modification and distribution are subject to the
242+
Boost Software License, Version 1.0. (See accompanying file
243+
LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
244+
-->

test/has_binary_operators.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
// Boost Software License, Version 1.0. (See accompanying file
44
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
55

6+
// It would be nice to get rid of the unnamed namespace here,
7+
// but for now we just turn off inspection reporting :(
8+
// boostinspect:nounnamed
9+
610
#ifndef TT_HAS_BINARY_OPERATORS_HPP
711
#define TT_HAS_BINARY_OPERATORS_HPP
812

test/has_postfix_operators.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
#ifndef TT_HAS_POSTFIX_OPERATORS_HPP
77
#define TT_HAS_POSTFIX_OPERATORS_HPP
88

9+
// It would be nice to get rid of the unnamed namespace here,
10+
// but for now we just turn off inspection reporting :(
11+
// boostinspect:nounnamed
12+
913
// test with one template parameter
1014
#define TEST_T(TYPE,RESULT) BOOST_CHECK_INTEGRAL_CONSTANT((::boost::BOOST_TT_TRAIT_NAME<TYPE>::value), RESULT)
1115
// test with one template parameter plus return value

test/has_prefix_operators.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
#pragma GCC diagnostic ignored "-Wunused-function"
1212
#endif
1313

14+
// It would be nice to get rid of the unnamed namespace here,
15+
// but for now we just turn off inspection reporting :(
16+
// boostinspect:nounnamed
17+
1418
// test with one template parameter
1519
#define TEST_T(TYPE,RESULT) BOOST_CHECK_INTEGRAL_CONSTANT((::boost::BOOST_TT_TRAIT_NAME<TYPE>::value), RESULT)
1620
// test with one template parameter plus return value

0 commit comments

Comments
 (0)