Fixed travis cxxflags

This commit is contained in:
Mathieu Champlon 2018-01-19 09:17:35 +01:00
parent afffdb470a
commit 9732acce78
2 changed files with 20 additions and 30 deletions

View file

@ -54,12 +54,10 @@ before_install:
- ./b2 headers - ./b2 headers
script: script:
- if [ "$CCFLAGS" != "" ]; then FLAGS="cxxflags=\"$CCFLAGS\" linkflags=\"$LINKFLAGS\""; else FLAGS=""; fi
- cd $PROJECT_DIR/build - cd $PROJECT_DIR/build
# `--coverage` flags required to generate coverage info for Coveralls
# ../../../b2 -q cxxflags="--coverage -std=$CXX_STANDARD" linkflags="--coverage"
- export BOOST_ROOT=$BOOST - export BOOST_ROOT=$BOOST
- ./build.sh cxxflags="--coverage -std=$CXX_STANDARD" linkflags="--coverage" # `--coverage` flags required to generate coverage info for Coveralls
- ./build.sh "cxxflags=-std=$CXX_STANDARD --coverage" "linkflags=--coverage"
after_success: after_success:
- COVERALS_DIR=$PROJECT_DIR/coverals - COVERALS_DIR=$PROJECT_DIR/coverals

View file

@ -5,36 +5,28 @@
# Distributed under the Boost Software License, Version 1.0. # Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
run()
{
echo $@
$@
r=$?
if test $r -ne 0 ; then
exit $r
fi
}
copy() copy()
{ {
for dir; do true; done for dir; do true; done
run mkdir -p $dir mkdir -p $dir
run cp $@ cp $@
} }
run export BOOST=$BOOST_ROOT set -x
run cd ../test export BOOST=$BOOST_ROOT
run $BOOST/b2 -q "$@"
run cd ../build
run export BOOSTBOOK_DIR=../bin/turtle/boostbook cd ../test
run copy -r "$BOOST"/tools/boostbook/xsl $BOOSTBOOK_DIR $BOOST/b2 -q "$@"
run copy -r "$BOOST"/tools/boostbook/dtd $BOOSTBOOK_DIR cd ../build
run copy -r boostbook/* $BOOSTBOOK_DIR
run copy "$BOOST"/doc/src/boostbook.css ../doc/html export BOOSTBOOK_DIR=../bin/turtle/boostbook
run copy "$BOOST"/doc/src/images/*.png ../doc/html/images copy -r "$BOOST"/tools/boostbook/xsl $BOOSTBOOK_DIR
run copy "$BOOST"/doc/src/images/callouts/*.png ../doc/html/images/callouts copy -r "$BOOST"/tools/boostbook/dtd $BOOSTBOOK_DIR
run cd ../doc copy -r boostbook/* $BOOSTBOOK_DIR
run $BOOST/b2 -q "$@" copy "$BOOST"/doc/src/boostbook.css ../doc/html
run cd ../build copy "$BOOST"/doc/src/images/*.png ../doc/html/images
copy "$BOOST"/doc/src/images/callouts/*.png ../doc/html/images/callouts
cd ../doc
$BOOST/b2 -q "$C"
cd ../build