Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
71d28a60
Commit
71d28a60
authored
Jun 29, 2017
by
Marco Pivetta
Committed by
GitHub
Jun 29, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2758 from malukenho/feature/add-scrutnizer
Generate code coverage via phpunit
parents
50343162
93629c5b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
10 deletions
+12
-10
.scrutinizer.yml
.scrutinizer.yml
+0
-1
.travis.coverage.sh
.travis.coverage.sh
+0
-5
.travis.yml
.travis.yml
+6
-2
phpunit.xml.dist
phpunit.xml.dist
+6
-2
No files found.
.scrutinizer.yml
View file @
71d28a60
...
...
@@ -13,7 +13,6 @@ tools:
filter
:
excluded_paths
:
-
docs
-
tools
build_failure_conditions
:
-
'
elements.rating(<=
C).new.exists'
# No new classes/methods with a rating of C or worse allowed
...
...
.travis.coverage.sh
deleted
100644 → 0
View file @
50343162
set
-x
if
[
"
$TRAVIS_PHP_VERSION
"
=
'7.1'
]
;
then
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload
--format
=
php-clover ./clover.xml
fi
.travis.yml
View file @
71d28a60
...
...
@@ -15,6 +15,9 @@ env:
-
DB=mysql
-
DB=mysqli
before_script
:
-
if [[ $TRAVIS_PHP_VERSION = '7.1' && $DB = 'sqlite' ]]; then PHPUNIT_FLAGS="--coverage-clover .clover.xml"; else PHPUNIT_FLAGS=""; fi
matrix
:
fast_finish
:
true
include
:
...
...
@@ -113,9 +116,10 @@ matrix:
-
php
:
nightly
after_script
:
-
sh .travis.coverage.sh
-
if [[ "$PHPUNIT_FLAGS" != "" ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
-
if [[ "$PHPUNIT_FLAGS" != "" ]]; then php ocular.phar code-coverage:upload --format=php-clover ./clover.xml; fi
install
:
-
travis_retry composer install
script
:
./vendor/bin/phpunit --configuration tests/travis/$DB.travis.xml
script
:
./vendor/bin/phpunit --configuration tests/travis/$DB.travis.xml
$PHPUNIT_FLAGS
phpunit.xml.dist
View file @
71d28a60
...
...
@@ -49,7 +49,11 @@
<directory>
./tests/Doctrine/Tests/DBAL/Performance
</directory>
</testsuite>
</testsuites>
<filter>
<whitelist
addUncoveredFilesFromWhitelist=
"true"
>
<directory
suffix=
".php"
>
./lib/Doctrine
</directory>
</whitelist>
</filter>
<listeners>
<listener
class=
"Doctrine\Tests\DbalPerformanceTestListener"
/>
</listeners>
...
...
@@ -59,4 +63,4 @@
<group>
performance
</group>
</exclude>
</groups>
</phpunit>
\ No newline at end of file
</phpunit>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment