Skip to content

Commit 7703cb6

Browse files
committed
Use more elegant travis build
1 parent bf88d65 commit 7703cb6

File tree

3 files changed

+10
-19
lines changed

3 files changed

+10
-19
lines changed

.travis.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ php:
1010

1111
cache:
1212
directories:
13-
- vendor
13+
- vendor
1414

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

24-
before_script:
25-
- if is_hhvm; then echo 'xdebug.enable = On' >> /etc/hhvm/php.ini; fi
26-
2724
script:
28-
- is_hhvm || mv -v "$XDEBUG.disabled" "$XDEBUG"
29-
- vendor/bin/phpunit --coverage-clover=coverage.clover --coverage-text
30-
- is_hhvm || mv -v "$XDEBUG" "$XDEBUG.disabled"
3125
- vendor/bin/phpcs --standard=PSR2 src tests
3226
- vendor/bin/php-cs-fixer fix -v --dry-run --allow-risky=yes --using-cache=no
27+
- if is_hhvm; then echo "xdebug.enable = On" >> /etc/hhvm/php.ini; else mv -v "$XDEBUG.disabled" "$XDEBUG"; fi
28+
- vendor/bin/phpunit --coverage-clover=coverage.clover --coverage-text
3329

3430
after_script:
3531
- is_hhvm || php ocular.phar code-coverage:upload --format=php-clover coverage.clover

CHANGES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog #
22

3+
## v2.2.0 (2017-07-08) ##
4+
5+
* Increase the minimum PHP version requirement to 5.6
6+
* Update to latest coding standards
7+
* Update tests to work with PHPUnit 6
8+
* Update travis build to test for PHP 7.1
9+
310
## v2.1.3 (2015-11-08) ##
411

512
* Ensure the tests run on both HHVM and PHP7

README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -244,18 +244,6 @@ apply to following calls.
244244

245245
## Known Issues ##
246246

247-
### Recursive arrays on PHP < 5.4.5 ###
248-
249-
If you try to encode recursive arrays on PHP versions earlier than 5.4.5, you
250-
may encounter the following error (due to the way array comparisons work
251-
internally in PHP):
252-
253-
`Fatal error: Nesting level too deep - recursive dependency?`
254-
255-
In order to fix this, you should disable the recursive array detection by
256-
setting the option `recursion.detect` to false and set a value for the option
257-
`recursion.max` to prevent recursive arrays from causing an infinite loop.
258-
259247
### Float precision on HHVM ###
260248

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

0 commit comments

Comments
 (0)