-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix tests to mimic libphonenumber-for-php
- Loading branch information
Showing
2 changed files
with
30 additions
and
23 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,33 +1,40 @@ | ||
sudo: false | ||
|
||
dist: trusty | ||
|
||
language: php | ||
|
||
matrix: | ||
fast_finish: true | ||
include: | ||
# Need to use Trusty for PHP 5.3 | ||
- php: 5.3 | ||
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" | ||
dist: precise | ||
- php: 5.4 | ||
- php: 5.5 | ||
- php: 5.6 | ||
- php: 7.0 | ||
- php: 7.1 | ||
- php: 7.2 | ||
- php: 7.3 | ||
|
||
before_script: | ||
- travis_retry composer update --no-interaction $COMPOSER_FLAGS | ||
- mkdir -p build/logs | ||
# Need to use Precise for PHP 5.3 | ||
- php: 5.3 | ||
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" COVERAGE_FLAGS="" | ||
dist: precise | ||
- php: 5.4 | ||
- php: 5.5 | ||
- php: 5.6 | ||
env: COVERAGE_FLAGS=" --coverage-text --coverage-clover build/logs/clover.xml" | ||
- php: 7.0 | ||
- php: 7.1 | ||
- php: 7.2 | ||
- php: 7.3 | ||
env: COVERAGE_FLAGS=" --coverage-text --coverage-clover build/logs/clover.xml" | ||
- php: 7.4snapshot | ||
|
||
before_install: | ||
- travis_retry wget https://scrutinizer-ci.com/ocular.phar | ||
- mkdir -p build/logs | ||
|
||
install: | ||
- travis_retry composer update --no-interaction $COMPOSER_FLAGS | ||
|
||
script: | ||
- ./vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml | ||
- composer validate --strict | ||
- ./vendor/bin/phpunit $COVERAGE_FLAGS | ||
|
||
after_script: | ||
- php vendor/bin/coveralls -v --exclude-no-stmt | ||
- wget https://scrutinizer-ci.com/ocular.phar | ||
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml | ||
after_success: | ||
- "[[ -f vendor/bin/php-coveralls ]] && COVERALLS_PATH=vendor/bin/php-coveralls || COVERALLS_PATH=vendor/bin/coveralls" | ||
- travis_retry php $COVERALLS_PATH -v --exclude-no-stmt | ||
- travis_retry php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml | ||
|
||
notifications: | ||
irc: "irc.appliedirc.com#applied" |
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