Skip to content

Commit

Permalink
Use more elegant travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
Riimu committed Jul 8, 2017
1 parent bf88d65 commit 7703cb6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 19 deletions.
10 changes: 3 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ php:

cache:
directories:
- vendor
- vendor

before_install:
- export XDEBUG="/home/travis/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini"
Expand All @@ -21,15 +21,11 @@ install:
- travis_retry composer update -a --no-interaction
- travis_retry wget https://scrutinizer-ci.com/ocular.phar

before_script:
- if is_hhvm; then echo 'xdebug.enable = On' >> /etc/hhvm/php.ini; fi

script:
- is_hhvm || mv -v "$XDEBUG.disabled" "$XDEBUG"
- vendor/bin/phpunit --coverage-clover=coverage.clover --coverage-text
- is_hhvm || mv -v "$XDEBUG" "$XDEBUG.disabled"
- vendor/bin/phpcs --standard=PSR2 src tests
- vendor/bin/php-cs-fixer fix -v --dry-run --allow-risky=yes --using-cache=no
- if is_hhvm; then echo "xdebug.enable = On" >> /etc/hhvm/php.ini; else mv -v "$XDEBUG.disabled" "$XDEBUG"; fi
- vendor/bin/phpunit --coverage-clover=coverage.clover --coverage-text

after_script:
- is_hhvm || php ocular.phar code-coverage:upload --format=php-clover coverage.clover
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog #

## v2.2.0 (2017-07-08) ##

* Increase the minimum PHP version requirement to 5.6
* Update to latest coding standards
* Update tests to work with PHPUnit 6
* Update travis build to test for PHP 7.1

## v2.1.3 (2015-11-08) ##

* Ensure the tests run on both HHVM and PHP7
Expand Down
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,18 +244,6 @@ apply to following calls.

## Known Issues ##

### Recursive arrays on PHP < 5.4.5 ###

If you try to encode recursive arrays on PHP versions earlier than 5.4.5, you
may encounter the following error (due to the way array comparisons work
internally in PHP):

`Fatal error: Nesting level too deep - recursive dependency?`

In order to fix this, you should disable the recursive array detection by
setting the option `recursion.detect` to false and set a value for the option
`recursion.max` to prevent recursive arrays from causing an infinite loop.

### Float precision on HHVM ###

Note that HHVM does not support the ini setting `serialize_precision`. Thus,
Expand Down

0 comments on commit 7703cb6

Please sign in to comment.