Skip to content

Commit

Permalink
Partial coverage run, refs 2057
Browse files Browse the repository at this point in the history
  • Loading branch information
mwjames committed Jul 29, 2017
1 parent 3a85c79 commit fd284bc
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 38 deletions.
3 changes: 2 additions & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ tools:
php_analyzer: true
sensiolabs_security_checker: true
external_code_coverage:
timeout: 1800 # Timeout in seconds
timeout: 3600 # Timeout in seconds
runs: 4 # Split tests across multiple runs

checks:
php:
Expand Down
42 changes: 8 additions & 34 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,41 +8,15 @@ dist: trusty
matrix:
fast_finish: true
include:
- env: DB=mysql; MW=REL1_29; PHPUNIT=5.7.*
- env: DB=mysql; MW=REL1_29; PHPUNIT=5.7.*; TYPE=coverage; COVERAGE_FILTER="--testsuite semantic-mediawiki-unit"
php: 7.1
- env: DB=mysql; MW=REL1_28; FUSEKI=2.4.0
php: 5.5
- env: DB=mysql; MW=REL1_25; VIRTUOSO=6.1
php: 5.6
- env: DB=mysql; MW=REL1_23; SESAME=2.8.7
php: 5.5
- env: DB=sqlite; MW=REL1_27; SITELANG=ja
php: 5.5
- env: DB=postgres; MW=REL1_26;
php: 5.5
- env: DB=mysql; MW=REL1_26; BLAZEGRAPH=1.5.2; PHPUNIT=4.8.*
php: 5.6
- env: DB=mysql; MW=REL1_25; TYPE=benchmark; PHPUNIT=5.7.*
php: hhvm-3.18
- env: DB=sqlite; MW=master; PHPUNIT=5.7.*
php: hhvm-3.18
- env: DB=sqlite; MW=REL1_27; TYPE=composer; PHPUNIT=4.8.*
php: 5.6
- env: DB=mysql; MW=REL1_25; TYPE=relbuild
php: 5.5
allow_failures:
# Takes at least ~35 min to complete therefore allow it run without delaying
# the status update
- env: DB=mysql; MW=REL1_29; PHPUNIT=5.7.*
# Can fail when pushed/used with newly Composer dependencies
- env: DB=mysql; MW=REL1_25; TYPE=relbuild
# Can fail when pushed/used with newly Composer dependencies
- env: DB=sqlite; MW=REL1_27; TYPE=composer; PHPUNIT=4.8.*
# This is MW master, you never know what WMF developers have put in for easter eggs
- env: DB=sqlite; MW=master; PHPUNIT=5.7.*
# May take a moment and is non-critical therefore allow it to run without delaying the status
- env: DB=mysql; MW=REL1_25; TYPE=benchmark; PHPUNIT=5.7.*
- env: DB=mysql; MW=REL1_23; SESAME=2.8.7
- env: DB=mysql; MW=REL1_29; PHPUNIT=5.7.*; TYPE=coverage; COVERAGE_FILTER="--testsuite semantic-mediawiki-integration-jsonscript"
php: 7.1
- env: DB=mysql; MW=REL1_29; PHPUNIT=5.7.*; TYPE=coverage; COVERAGE_FILTER="--testsuite semantic-mediawiki-integration-import"
php: 7.1
- env: DB=mysql; MW=REL1_29; PHPUNIT=5.7.*; TYPE=coverage; COVERAGE_FILTER="--testsuite semantic-mediawiki-integration-others"
php: 7.1


# Dec 16, 2015 (GCE switch): Travis support wrote (Tomcat + Java):
# bug in the JDK: http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7089443.
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
},
"scripts": {
"phpunit": "php ../../tests/phpunit/phpunit.php -c phpunit.xml.dist",
"phpdbg": "phpdbg -qrr ../../tests/phpunit/phpunit.php -c phpunit.xml.dist",
"unit": [
"composer dump-autoload",
"composer phpunit -- --testsuite=semantic-mediawiki-unit"
Expand Down
10 changes: 8 additions & 2 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,16 @@
</testsuite>
<testsuite name="semantic-mediawiki-integration">
<directory>tests/phpunit/Integration</directory>
</testsuite>
<testsuite name="semantic-mediawiki-integration-others">
<directory>tests/phpunit/Integration</directory>
<exclude>tests/phpunit/Integration/MediaWiki/Import</exclude>
<exclude>tests/phpunit/Integration/System</exclude>
<exclude>tests/phpunit/Integration/JSONScript</exclude>
</testsuite>
<testsuite name="semantic-mediawiki-integration-jsonscript">
<directory>tests/phpunit/Integration/JSONScript</directory>
</testsuite>
<testsuite name="semantic-mediawiki-import">
<testsuite name="semantic-mediawiki-integration-import">
<directory>tests/phpunit/Integration/MediaWiki/Import</directory>
</testsuite>
<testsuite name="semantic-mediawiki-system">
Expand Down
2 changes: 1 addition & 1 deletion tests/travis/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cd $MW_INSTALL_PATH/extensions/SemanticMediaWiki

if [ "$TYPE" == "coverage" ]
then
composer phpunit -- --coverage-clover $BASE_PATH/tests/coverage.clover
composer phpunit -- --coverage-clover $BASE_PATH/tests/coverage.clover $COVERAGE_FILTER
elif [ "$TYPE" == "benchmark" ]
then
composer phpunit -- --group semantic-mediawiki-benchmark
Expand Down

0 comments on commit fd284bc

Please sign in to comment.