Skip to content

Commit ed2a22a

Browse files
author
Mathieu Champlon
authored
Merge pull request mat007#36 from mat007/fix-travis-cxxflags
Fixed travis cxxflags
2 parents afffdb4 + 9732acc commit ed2a22a

File tree

2 files changed

+20
-30
lines changed

2 files changed

+20
-30
lines changed

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,10 @@ before_install:
5454
- ./b2 headers
5555

5656
script:
57-
- if [ "$CCFLAGS" != "" ]; then FLAGS="cxxflags=\"$CCFLAGS\" linkflags=\"$LINKFLAGS\""; else FLAGS=""; fi
5857
- cd $PROJECT_DIR/build
59-
# `--coverage` flags required to generate coverage info for Coveralls
60-
# ../../../b2 -q cxxflags="--coverage -std=$CXX_STANDARD" linkflags="--coverage"
6158
- export BOOST_ROOT=$BOOST
62-
- ./build.sh cxxflags="--coverage -std=$CXX_STANDARD" linkflags="--coverage"
59+
# `--coverage` flags required to generate coverage info for Coveralls
60+
- ./build.sh "cxxflags=-std=$CXX_STANDARD --coverage" "linkflags=--coverage"
6361

6462
after_success:
6563
- COVERALS_DIR=$PROJECT_DIR/coverals

build/build.sh

Lines changed: 18 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,28 @@
55
# Distributed under the Boost Software License, Version 1.0.
66
# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
77

8-
run()
9-
{
10-
echo $@
11-
$@
12-
r=$?
13-
if test $r -ne 0 ; then
14-
exit $r
15-
fi
16-
}
17-
188
copy()
199
{
2010
for dir; do true; done
21-
run mkdir -p $dir
22-
run cp $@
11+
mkdir -p $dir
12+
cp $@
2313
}
2414

25-
run export BOOST=$BOOST_ROOT
15+
set -x
16+
17+
export BOOST=$BOOST_ROOT
2618

27-
run cd ../test
28-
run $BOOST/b2 -q "$@"
29-
run cd ../build
19+
cd ../test
20+
$BOOST/b2 -q "$@"
21+
cd ../build
3022

31-
run export BOOSTBOOK_DIR=../bin/turtle/boostbook
32-
run copy -r "$BOOST"/tools/boostbook/xsl $BOOSTBOOK_DIR
33-
run copy -r "$BOOST"/tools/boostbook/dtd $BOOSTBOOK_DIR
34-
run copy -r boostbook/* $BOOSTBOOK_DIR
35-
run copy "$BOOST"/doc/src/boostbook.css ../doc/html
36-
run copy "$BOOST"/doc/src/images/*.png ../doc/html/images
37-
run copy "$BOOST"/doc/src/images/callouts/*.png ../doc/html/images/callouts
38-
run cd ../doc
39-
run $BOOST/b2 -q "$@"
40-
run cd ../build
23+
export BOOSTBOOK_DIR=../bin/turtle/boostbook
24+
copy -r "$BOOST"/tools/boostbook/xsl $BOOSTBOOK_DIR
25+
copy -r "$BOOST"/tools/boostbook/dtd $BOOSTBOOK_DIR
26+
copy -r boostbook/* $BOOSTBOOK_DIR
27+
copy "$BOOST"/doc/src/boostbook.css ../doc/html
28+
copy "$BOOST"/doc/src/images/*.png ../doc/html/images
29+
copy "$BOOST"/doc/src/images/callouts/*.png ../doc/html/images/callouts
30+
cd ../doc
31+
$BOOST/b2 -q "$C"
32+
cd ../build

0 commit comments

Comments
 (0)