Skip to content

Commit

Permalink
use older versions of dependencies for old php versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tflori committed Nov 17, 2018
1 parent 1708adb commit 0d55b19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
@@ -1,7 +1,6 @@
language: php
dist: trusty
php:
- 5.3
- 5.4
- 5.5
- 5.6
Expand All @@ -20,10 +19,11 @@ matrix:

before_script:
- composer install --no-interaction
- sh -c 'if [ "$TRAVIS_PHP_VERSION" = "7.1" ]; then composer require satooshi/php-coveralls:~0.6@stable; fi;'
- mkdir -p build/logs

script:
- composer code-style
- vendor/bin/phpunit -c phpunit.xml --coverage-clover=build/logs/clover.xml --coverage-text
- sh -c 'if [ "$TRAVIS_PHP_VERSION" = "7.1" ]; then php vendor/bin/coveralls -v; fi;'

after_success:
- travis_retry php vendor/bin/php-coveralls -v
5 changes: 3 additions & 2 deletions composer.json
Expand Up @@ -14,8 +14,9 @@
}
},
"require-dev": {
"phpunit/phpunit": "^5.6",
"squizlabs/php_codesniffer": "^3.3"
"phpunit/phpunit": "^5.6|^4.8",
"squizlabs/php_codesniffer": "^3.3|^2.9",
"php-coveralls/php-coveralls": "^2.1|^1.1"
},
"scripts": {
"code-style": "phpcs --standard=PSR2 SecureToken && phpcs --standard=PSR2 --ignore=example tests"
Expand Down

0 comments on commit 0d55b19

Please sign in to comment.