-
Notifications
You must be signed in to change notification settings - Fork 73
Improve Travis matrix #207
Changes from 4 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,32 @@ | ||
language: php | ||
sudo: false | ||
|
||
php: | ||
- 7.0 | ||
- 5.6 | ||
- 5.5 | ||
- 5.4 | ||
- hhvm | ||
- hhvm-nightly | ||
|
||
matrix: | ||
include: | ||
- php: 5.4 | ||
env: COMPOSER_FLAGS='--prefer-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. Would it be simpler to just add an env block later? e.g.
Keeps the list of flags and versions distinct? |
||
- 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 |
||
- php: 5.5 | ||
env: COMPOSER_FLAGS='--prefer-lowest' | ||
- php: 5.5 | ||
- php: 5.6 | ||
env: COMPOSER_FLAGS='--prefer-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 |
||
- php: 7.0 | ||
env: COMPOSER_FLAGS='--prefer-lowest' | ||
- php: 7.0 | ||
- php: 7.1 | ||
env: COMPOSER_FLAGS='--prefer-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: | ||
- TEST_COVERAGE=true | ||
- php: hhvm | ||
env: COMPOSER_FLAGS='--prefer-lowest' | ||
- php: hhvm | ||
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 | ||
|
@@ -24,12 +35,9 @@ cache: | |
directories: | ||
- $HOME/.composer/cache | ||
|
||
before_install: | ||
- travis_retry composer self-update | ||
|
||
before_script: | ||
- travis_retry composer install --no-interaction | ||
- composer update --no-interaction --prefer-source $COMPOSER_FLAGS | ||
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. Is there some reason to put |
||
|
||
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.
Per #226, we can remove the EOL php versions 5.3 to 5.5.