Skip to content

Commit

Permalink
Merge pull request mat007#36 from mat007/fix-travis-cxxflags
Browse files Browse the repository at this point in the history
Fixed travis cxxflags
  • Loading branch information
Mathieu Champlon authored Jan 20, 2018
2 parents afffdb4 + 9732acc commit ed2a22a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 30 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,10 @@ before_install:
- ./b2 headers

script:
- if [ "$CCFLAGS" != "" ]; then FLAGS="cxxflags=\"$CCFLAGS\" linkflags=\"$LINKFLAGS\""; else FLAGS=""; fi
- 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
- ./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:
- COVERALS_DIR=$PROJECT_DIR/coverals
Expand Down
44 changes: 18 additions & 26 deletions build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,28 @@
# 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)

run()
{
echo $@
$@
r=$?
if test $r -ne 0 ; then
exit $r
fi
}

copy()
{
for dir; do true; done
run mkdir -p $dir
run cp $@
mkdir -p $dir
cp $@
}

run export BOOST=$BOOST_ROOT
set -x

export BOOST=$BOOST_ROOT

run cd ../test
run $BOOST/b2 -q "$@"
run cd ../build
cd ../test
$BOOST/b2 -q "$@"
cd ../build

run export BOOSTBOOK_DIR=../bin/turtle/boostbook
run copy -r "$BOOST"/tools/boostbook/xsl $BOOSTBOOK_DIR
run copy -r "$BOOST"/tools/boostbook/dtd $BOOSTBOOK_DIR
run copy -r boostbook/* $BOOSTBOOK_DIR
run copy "$BOOST"/doc/src/boostbook.css ../doc/html
run copy "$BOOST"/doc/src/images/*.png ../doc/html/images
run copy "$BOOST"/doc/src/images/callouts/*.png ../doc/html/images/callouts
run cd ../doc
run $BOOST/b2 -q "$@"
run cd ../build
export BOOSTBOOK_DIR=../bin/turtle/boostbook
copy -r "$BOOST"/tools/boostbook/xsl $BOOSTBOOK_DIR
copy -r "$BOOST"/tools/boostbook/dtd $BOOSTBOOK_DIR
copy -r boostbook/* $BOOSTBOOK_DIR
copy "$BOOST"/doc/src/boostbook.css ../doc/html
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

0 comments on commit ed2a22a

Please sign in to comment.