Merge pull request #274 from marc1706/ticket/273
[ticket/273] Only show portal files in coverage report
This commit is contained in:
@@ -46,6 +46,7 @@ install:
|
|||||||
- sh -c "if [ '$COVERALLS' != '0' ]; then ../board3/Board3-Portal/travis/prepare-coveralls.sh $DB $TRAVIS_PHP_VERSION; fi"
|
- sh -c "if [ '$COVERALLS' != '0' ]; then ../board3/Board3-Portal/travis/prepare-coveralls.sh $DB $TRAVIS_PHP_VERSION; fi"
|
||||||
- travis/prepare-extension.sh $EXTNAME $PHPBB_BRANCH
|
- travis/prepare-extension.sh $EXTNAME $PHPBB_BRANCH
|
||||||
- travis/setup-phpbb.sh $DB $TRAVIS_PHP_VERSION
|
- travis/setup-phpbb.sh $DB $TRAVIS_PHP_VERSION
|
||||||
|
- sh -c "if [ '$COVERALLS' != '0' ]; then ../board3/Board3-Portal/travis/prepare-coverage.sh $DB $TRAVIS_PHP_VERSION; fi"
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- travis/setup-database.sh $DB $TRAVIS_PHP_VERSION
|
- travis/setup-database.sh $DB $TRAVIS_PHP_VERSION
|
||||||
|
|||||||
@@ -18,3 +18,4 @@ The extension is currently under heavy development and not supported until furth
|
|||||||
|
|
||||||
We are starting to have unit and functional tests in order to prevent regressions. You can check our travis build below.
|
We are starting to have unit and functional tests in order to prevent regressions. You can check our travis build below.
|
||||||
develop-2.1.x - [](https://travis-ci.org/board3/Board3-Portal)
|
develop-2.1.x - [](https://travis-ci.org/board3/Board3-Portal)
|
||||||
|
[](https://coveralls.io/r/board3/Board3-Portal?branch=develop-2.1.x)
|
||||||
|
|||||||
@@ -20,10 +20,4 @@
|
|||||||
<directory suffix="_test.php" phpVersion="5.3.19" phpVersionOperator=">=">./tests/functional/</directory>
|
<directory suffix="_test.php" phpVersion="5.3.19" phpVersionOperator=">=">./tests/functional/</directory>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
</testsuites>
|
</testsuites>
|
||||||
|
|
||||||
<filter>
|
|
||||||
<blacklist>
|
|
||||||
<directory>./tests/</directory>
|
|
||||||
</blacklist>
|
|
||||||
</filter>
|
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
|||||||
21
travis/prepare-coverage.sh
Executable file
21
travis/prepare-coverage.sh
Executable file
@@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# This file is part of the phpBB Forum Software package.
|
||||||
|
#
|
||||||
|
# @copyright (c) phpBB Limited <https://www.phpbb.com>
|
||||||
|
# @license GNU General Public License, version 2 (GPL-2.0)
|
||||||
|
#
|
||||||
|
# For full copyright and license information, please see
|
||||||
|
# the docs/CREDITS.txt file.
|
||||||
|
#
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
|
DB=$1
|
||||||
|
TRAVIS_PHP_VERSION=$2
|
||||||
|
|
||||||
|
if [ "$TRAVIS_PHP_VERSION" == "5.5" -a "$DB" == "mysqli" ]
|
||||||
|
then
|
||||||
|
sed -n '1h;1!H;${;g;s/<\/php>/<\/php>\n\t<filter>\n\t\t<whitelist>\n\t\t\t<directory>..\/<\/directory>\n\t\t\t<exclude>\n\t\t\t\t<directory>..\/tests\/<\/directory>\n\t\t\t\t<directory>..\/develop\/<\/directory>\n\t\t\t<\/exclude>\n\t\t<\/whitelist>\n\t<\/filter>/g;p;}' phpBB/ext/board3/portal/travis/phpunit-mysqli-travis.xml &> phpBB/ext/board3/portal/travis/phpunit-mysqli-travis.xml.bak
|
||||||
|
cp phpBB/ext/board3/portal/travis/phpunit-mysqli-travis.xml.bak phpBB/ext/board3/portal/travis/phpunit-mysqli-travis.xml
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user