Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for symfony/console v4 #3

Merged
merged 3 commits into from
Nov 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 37 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,62 @@ php:
- 5.5
- 5.6
- 7.0
- hhvm
- 7.1
- nightly

sudo: false

matrix:
include:
- php: 5.4
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
- php: 5.5
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
- php: 5.6
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
- php: 7.0
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
- php: hhvm
- php: 7.1
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
- php: nightly
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
- php: 5.4
env: COMPOSER_FLAGS='--prefer-latest'
- php: 5.5
env: COMPOSER_FLAGS='--prefer-latest'
- php: 5.6
env: COMPOSER_FLAGS='--prefer-latest'
- php: 7.0
env: COMPOSER_FLAGS='--prefer-latest'
- php: 7.1
env: COMPOSER_FLAGS='--prefer-latest'
- php: nightly
env: COMPOSER_FLAGS='--prefer-latest'
fast_finish: true
allow_failures:
- php: nightly

before_script:
before_install:
- travis_retry composer self-update

install:
- |
if [[ "$COMPOSER_FLAGS" == "--prefer-latest" ]]; then
composer config minimum-stability dev
composer config prefer-stable false

export COMPOSER_FLAGS=""
fi;

- travis_retry composer update $COMPOSER_FLAGS --prefer-source

script:
before_script:
- mkdir -p build/logs

script:
- ./vendor/bin/parallel-lint src tests
- ./vendor/bin/phpunit --verbose
- ./vendor/bin/phpunit --verbose --coverage-clover build/logs/clover.xml
- ./vendor/bin/phpcs src tests --standard=psr2 -sp

after_script:
- php vendor/bin/coveralls

notifications:
webhooks:
urls:
- 'https://webhooks.gitter.im/e/f3356db3405001e47b5e'
on_success: change
on_failure: always
on_start: false
- travis_retry php vendor/bin/coveralls
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"require": {
"php": ">=5.4",
"ramsey/uuid": "^3.0",
"symfony/console": "^2.7|~3.0",
"symfony/console": "^2.7|~3.0|^4.0",
"moontoast/math": "^1.1"
},
"require-dev": {
Expand Down