-
Notifications
You must be signed in to change notification settings - Fork 73
Improve Travis matrix #207
Changes from 3 commits
adcd387
fbc92b7
3d3e76a
9d914a9
7377007
5202f15
e755a06
e1e9a85
b64f9bd
ae2bbe8
c18a8a9
495f5b7
8b605cd
d332be9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,43 @@ | ||
language: php | ||
sudo: false | ||
|
||
php: | ||
- 7.0 | ||
- 5.6 | ||
- 5.5 | ||
- 5.4 | ||
- hhvm | ||
- hhvm-nightly | ||
|
||
matrix: | ||
include: | ||
- php: 5.4 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Per #226, we can remove the EOL php versions 5.3 to 5.5. |
||
env: DEPS=lowest | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
- php: 5.4 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think you can skip the flags here as it's the default behaviour |
||
env: DEPS=latest | ||
- php: 5.5 | ||
env: DEPS=lowest | ||
- php: 5.5 | ||
env: DEPS=latest | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. doubling the number of tests looks a bit too much to me. Having a test for the two extrema plus one for each version is enough I think |
||
- php: 5.6 | ||
env: DEPS=lowest | ||
- php: 5.6 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. versions should be strings |
||
env: DEPS=latest | ||
- php: 7.0 | ||
env: DEPS=lowest | ||
- php: 7.0 | ||
env: DEPS=latest | ||
- php: 7.1 | ||
env: DEPS=lowest | ||
- php: 7.1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we're missing a |
||
env: | ||
- DEPS=latest | ||
- TEST_COVERAGE=true | ||
- php: hhvm | ||
env: DEPS=lowest | ||
- php: hhvm | ||
env: DEPS=latest | ||
- php: hhvm-nightly | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. HHVM nightly is no longer supported on TravisCI - travis-ci/travis-ci#3788, so it should be removed |
||
env: DEPS=lowest | ||
- php: hhvm-nightly | ||
env: DEPS=latest | ||
fast_finish: true | ||
allow_failures: | ||
- php: 7.0 | ||
- php: hhvm | ||
- php: hhvm-nightly | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's no |
||
|
||
branches: | ||
only: | ||
- master | ||
|
@@ -28,8 +50,9 @@ before_install: | |
- travis_retry composer self-update | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is no longer necessary, although it's not related to this PR I think you can take the opportunity to remove it |
||
|
||
before_script: | ||
- travis_retry composer install --no-interaction | ||
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update --no-interaction --prefer-source ; fi | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With my first comment, this [the two added lines] can be simplified to |
||
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --no-interaction --prefer-source --prefer-lowest ; fi | ||
|
||
script: | ||
- vendor/bin/phpunit --coverage-text | ||
- if [[ $TEST_COVERAGE == 'true' ]]; then vendor/bin/phpunit --coverage-text ; else vendor/bin/phpunit ; fi | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Single brackets are also enough AFAIK There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What do you think about introducing |
||
- vendor/bin/behat |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also no part of the goal of this PR, can be removed as well