2
0
mirror of https://github.com/boostorg/process.git synced 2026-01-19 04:22:15 +00:00

another attempt

This commit is contained in:
Klemens David Morgenstern
2018-11-12 18:12:33 +07:00
parent c2ee6da367
commit 29cd54ea8c
2 changed files with 4 additions and 11 deletions

View File

@@ -97,8 +97,8 @@ before_install:
script:
# `--coverage` flags required to generate coverage info for Coveralls
- python $BOOST/libs/$PROJECT_TO_TEST/filter_section_warning.py ../../../b2 with-valgrind address-model=64 architecture=x86 testing.launcher=valgrind valgrind=on toolset=$TOOLSET cxxflags="--coverage -DBOOST_TRAVISCI_BUILD -std=$CXX_STANDARD" linkflags=$LDFLAGS -sBOOST_BUILD_PATH=.
- python $BOOST/libs/$PROJECT_TO_TEST/filter_section_warning.py ../../../b2 without-valgrind address-model=64 architecture=x86 toolset=$TOOLSET cxxflags="--coverage -DBOOST_TRAVISCI_BUILD -std=$CXX_STANDARD" linkflags=$LDFLAGS -sBOOST_BUILD_PATH=.
- ../../../b2 with-valgrind address-model=64 architecture=x86 testing.launcher=valgrind valgrind=on toolset=$TOOLSET cxxflags="--coverage -DBOOST_TRAVISCI_BUILD -std=$CXX_STANDARD" linkflags=$LDFLAGS -sBOOST_BUILD_PATH=. > >(python $BOOST/libs/$PROJECT_TO_TEST/filter_section_warning.py)
- ../../../b2 without-valgrind address-model=64 architecture=x86 toolset=$TOOLSET cxxflags="--coverage -DBOOST_TRAVISCI_BUILD -std=$CXX_STANDARD" linkflags=$LDFLAGS -sBOOST_BUILD_PATH=. > >(python $BOOST/libs/$PROJECT_TO_TEST/filter_section_warning.py)
after_success:
# Copying Coveralls data to a separate folder
- mkdir -p $TRAVIS_BUILD_DIR/coverals

View File

@@ -2,13 +2,8 @@
#
import sys
import subprocess
b2 = subprocess.Popen(sys.argv[1:], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True)
while not b2.returncode:
line = b2.stdout.readline()
if not line: break;
for line in sys.stdin:
# If line is a 'noisy' warning, don't print it or the following two lines.
if ('warning: section' in line and 'is deprecated' in line
or 'note: change section name to' in line):
@@ -16,6 +11,4 @@ while not b2.returncode:
next(sys.stdin)
else:
sys.stdout.write(line)
sys.stdout.flush()
exit(b2.returncode)
sys.stdout.flush()