Skip to content
This repository has been archived by the owner on Feb 12, 2019. It is now read-only.

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alorel committed Jun 7, 2016
1 parent c56bbfa commit bd4e170
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Expand Up @@ -18,13 +18,14 @@ before_install:
before_script:
- bash -c 'if [[ "$TRAVIS_PHP_VERSION" != *"hhvm"* ]]; then phpenv config-rm xdebug.ini; else mkdir -p ~/.phpenv/versions/hhvm/etc; fi;'
- echo "date.timezone = Europe/London" >> .date-timezone.ini && phpenv config-add .date-timezone.ini
- composer require --update-no-dev satooshi/php-coveralls brianium/paratest phpunit/phpunit
- composer require --update-no-dev satooshi/php-coveralls phpunit/phpunit
- bash -c 'if [[ "$TRAVIS_PHP_VERSION" != *"hhvm"* ]]; then echo "zend_extension = xdebug.so" >> .xdebug.ini && phpenv config-add .xdebug.ini; fi;'

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

after_script:
- echo $COVERALLS >> .coveralls.yml
- bash -c 'if [ -f build/logs/clover.xml ]; then chmod 777 build/logs/clover.xml && php vendor/bin/coveralls -v; fi;'

notifications:
Expand Down
4 changes: 4 additions & 0 deletions phpunit.xml
Expand Up @@ -37,6 +37,10 @@
</whitelist>
</filter>

<logging>
<log type="coverage-text" target="php://stdout"/>
</logging>

<php>
<ini name="allow_url_fopen" value="1"/>
<ini name="display_errors" value="stderr"/>
Expand Down
6 changes: 2 additions & 4 deletions tests/Operations/Files/SaveURLTest.php
Expand Up @@ -21,10 +21,8 @@ class SaveURLTest extends \PHPUnit_Framework_TestCase {

static function setUpBeforeClass() {
self::$fn = self::genFileName('php');
self::$URL = sprintf(
'https://raw.githubusercontent.com/Alorel/dropbox-v2-php/%s/tests/inc/lorem-ipsum.txt',
TestUtil::gitBranch()
);
self::$URL = 'https://raw.githubusercontent.com/Alorel/dropbox-v2-php/' . TestUtil::gitBranch() .
'/tests/inc/lorem-ipsum.txt';
}

function assertResponse(array $r) {
Expand Down

0 comments on commit bd4e170

Please sign in to comment.