-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from supersmile2009/master
Allow omnipay/tests v3. Improve travis build matrix.
- Loading branch information
Showing
2 changed files
with
28 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,34 @@ | ||
language: php | ||
|
||
php: | ||
- 5.6 | ||
- 7.0 | ||
- 7.1 | ||
- '5.6' | ||
- '7.0' | ||
- '7.1' | ||
- '7.2' | ||
- nightly | ||
|
||
env: | ||
- COMMON_VERSION="^2.0" | ||
- COMMON_VERSION="^3.0" | ||
|
||
matrix: | ||
fast_finish: true | ||
exclude: | ||
- php: '7.2' | ||
env: COMMON_VERSION="^2.0" | ||
- php: nightly | ||
env: COMMON_VERSION="^2.0" | ||
allow_failures: | ||
- php: nightly | ||
|
||
install: | ||
- if [ "$COMMON_VERSION" != "" ]; then composer require "omnipay/common:$COMMON_VERSION" "omnipay/tests:$COMMON_VERSION" --no-update; fi; | ||
- if [ "$COMMON_VERSION" == "^2.0" ]; then composer require "squizlabs/php_codesniffer:^1" --no-update; else composer require "squizlabs/php_codesniffer:^3" --no-update; fi; | ||
- composer install -n | ||
|
||
before_script: | ||
- composer install -n --dev | ||
# Disable test listener in PHP 5.6, when testing against v3 of omnipay/tests because mockery's v1 listener | ||
# is not compatible with PHPUnit v5.7 | ||
- if [ "$TRAVIS_PHP_VERSION" == "5.6" ] && [ "$COMMON_VERSION" == "^3.0" ]; then sed -i '/<listeners>/,/<\/listeners>/d' ./phpunit.xml.dist; fi; | ||
|
||
script: vendor/bin/phpcs --standard=PSR2 src && vendor/bin/phpunit --coverage-text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters