Skip to content

Commit

Permalink
Merge pull request #1 from Toilal/php-support
Browse files Browse the repository at this point in the history
Drop PHP 5 support, add PHP 7 to TravisCI build
  • Loading branch information
goetas authored Aug 23, 2020
2 parents 9ca2acf + 83cb5ce commit 5b8c0e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,25 @@ language: php
sudo: false

php:
- 5.4
- 5.5
- 5.6
- hhvm
- 7.1
- 7.2
- 7.3
- 7.4

cache:
directories:
- vendor
- $HOME/.composer/cache

before_script:
- if [[ $TRAVIS_PHP_VERSION = '5.6' ]]; then echo "xdebug.max_nesting_level=1000" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
- if [[ $TRAVIS_PHP_VERSION = '5.6' ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; else PHPUNIT_FLAGS=""; fi
- if [[ $TRAVIS_PHP_VERSION != '5.6' && $TRAVIS_PHP_VERSION != 'hhvm' ]]; then phpenv config-rm xdebug.ini; fi
- if [[ $TRAVIS_PHP_VERSION = '7.1' ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; else PHPUNIT_FLAGS=""; fi
- if [[ $TRAVIS_PHP_VERSION != '7.1' ]]; then phpenv config-rm xdebug.ini; fi
- travis_retry composer self-update
- travis_retry composer update $COMPOSER_FLAGS

script: vendor/bin/phpunit $PHPUNIT_FLAGS

after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- if [[ $TRAVIS_PHP_VERSION = '5.6' ]] ; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
- if [[ $TRAVIS_PHP_VERSION = '7.1' ]] ; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
],
"license": "MIT",
"require": {
"php": "^5.4||^7.0",
"php": "^7.1",
"goetas-webservices/wsdl-reader": "^0.3"
},
"require-dev": {
Expand Down

0 comments on commit 5b8c0e4

Please sign in to comment.