mirror of
https://github.com/egulias/EmailValidator.git
synced 2026-09-12 19:16:49 +00:00
451b438902
* #256 Bypass a PHP warning generated by @dns_get_record The idea is to create a custom error handler for dns_get_record(), call dns_get_record and then restore the original error handler. This way we can catch PHP warnings (e.g. "Warning: dns_get_record(): DNS Query failed" or "dns_get_record(): A temporary server error occurred." [ErrorException]) * #256 Make `UnableToGetDNSRecord` reason more testable * #256 Suppress psalm’s false-positive error see https://github.com/vimeo/psalm/issues/5134#issuecomment-782937791 * #256 Speed up tests: start from previously failed * #256 Suppress psalm’s false-positive error We don’t have a control over AbstractLexer and can’t specify array shape in this parent class
46 lines
893 B
YAML
46 lines
893 B
YAML
language: php
|
|
|
|
matrix:
|
|
include:
|
|
- php: 7.2
|
|
env:
|
|
- psalm=yes
|
|
dist: bionic
|
|
- php: 7.3
|
|
dist: bionic
|
|
env:
|
|
- psalm=yes
|
|
- php: 7.4
|
|
env:
|
|
- psalm=yes
|
|
dist: bionic
|
|
- php: 8.0
|
|
env:
|
|
- psalm=yes
|
|
dist: bionic
|
|
#ppc64le support code
|
|
- php: 7.2
|
|
arch: ppc64le
|
|
env:
|
|
- psalm=yes
|
|
dist: bionic
|
|
- php: 7.4
|
|
arch: ppc64le
|
|
env:
|
|
- psalm=yes
|
|
dist: bionic
|
|
|
|
install:
|
|
- if [ "$deps" = "low" ]; then composer update --prefer-lowest; else composer install; fi
|
|
- if [ "$psalm" = "yes" ]; then composer require --dev vimeo/psalm; fi
|
|
|
|
before_script:
|
|
- mkdir -p build/logs
|
|
|
|
script:
|
|
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml --exclude-group slow
|
|
- if [ "$psalm" = "yes" ]; then vendor/bin/psalm; fi
|
|
|
|
after_script:
|
|
- php vendor/bin/coveralls
|