mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-28 00:20:17 +00:00
Updated phone formatter (#241)
* Add locale and libphonenumber libraries. * Update country code information Updated existing country codes, fixed incorrect NANP codes for member countries (as well as several UK based ones). Also added in Country Name to ISO country code mapping array for use with libphonenumber. * Convert phone number formatting to use libphonenumber libphonenumber parses phone number more consistantly than the old regex's that mismatched number on a regular basis.
This commit is contained in:
+35
@@ -0,0 +1,35 @@
|
||||
sudo: false
|
||||
|
||||
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
|
||||
# Use the newer stack for HHVM as HHVM does not support Precise
|
||||
- php: hhvm
|
||||
dist: trusty
|
||||
|
||||
before_script:
|
||||
- travis_retry composer update --no-interaction $COMPOSER_FLAGS
|
||||
- mkdir -p build/logs
|
||||
|
||||
script:
|
||||
- ./vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
|
||||
|
||||
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
|
||||
|
||||
notifications:
|
||||
irc: "irc.appliedirc.com#applied"
|
||||
Reference in New Issue
Block a user