Skip to content

Commit

Permalink
Merge b02b08a into f009060
Browse files Browse the repository at this point in the history
  • Loading branch information
abbadon1334 committed Jul 4, 2019
2 parents f009060 + b02b08a commit 30a8a31
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Set folder to clover (must be the same on travis)
coverage_clover: coverage/xml/clover.xml
coverage_clover: build/logs/clover.xml
# Same folder here
json_path: coverage/xml/coveralls-upload.json
json_path: build/logs/coveralls-upload.json
# Don't touch that
service_name: travis-ci
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@ before_script:
- curl -s http://getcomposer.org/installer | php
- php composer.phar install -n
- composer require satooshi/php-coveralls:~1.0@stable # Require phpCoveralls
- mkdir -p coverage/xml # Create a folder to store clover files
- mkdir -p coverage/xml # Create a folder to store clover files #1
- mkdir -p build/logs # Create a folder to store clover files #2
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build

script:
- php vendor/bin/phpunit --coverage-clover coverage/xml/clover.xml
- php vendor/bin/phpunit --coverage-clover build/logs/clover.xml

after_script:
- php vendor/bin/codacycoverage clover coverage/xml/clover.xml
- php vendor/bin/codacycoverage clover build/logs/clover.xml
- sh -c 'if( [ "$TRAVIS_PHP_VERSION" != "hhvm" ] ); then php vendor/bin/coveralls -v; fi;'
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
- ./cc-test-reporter after-build --coverage-input-type clover --exit-code $TRAVIS_TEST_RESULT
1 change: 1 addition & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<whitelist addUncoveredFilesFromWhitelist="true" processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
<exclude>
<directory suffix=".php">./demos</directory>
<directory suffix=".php">./tests</directory>
<directory suffix=".php">./vendor</directory>
</exclude>
Expand Down

0 comments on commit 30a8a31

Please sign in to comment.