Update git metafiles, simpler coverage for PHP 7.3

parent 8f2c9da0
/.* export-ignore
/composer.lock export-ignore
/phpcs.xml.dist export-ignore
/phpunit.xml.dist export-ignore
/tests export-ignore
...@@ -5,28 +5,20 @@ ...@@ -5,28 +5,20 @@
.DS_Store .DS_Store
.idea .idea
.phpintel .phpintel
composer.phar
# Local System Files (i.e. cache, logs, etc.) #
/cache
/build/logs
/build/coverage
/tmp
# Test Related Files #
/phpunit.xml
#Exception output
TelegramException.log
# Composer # Composer
vendor/ /composer.phar
/vendor
# Test-Related Files
/clover.xml
/phpcs.xml
/phpunit.xml
# phpDocumentor Logs # # phpDocumentor Logs
phpdoc-* phpdoc-*
# OSX # # OSX
._* ._*
.Spotlight-V100 .Spotlight-V100
.Trashes .Trashes
dist: trusty
sudo: required
language: php language: php
sudo: required
dist: trusty
addons: addons:
mariadb: 10.1 mariadb: 10.1
cache: cache:
directories: directories:
- "$HOME/.composer/cache" - vendor
- $HOME/.composer/cache
php: php:
- 5.5 - 5.5
...@@ -44,7 +45,7 @@ before_script: ...@@ -44,7 +45,7 @@ before_script:
script: script:
- composer check-code - composer check-code
- if [ "$TRAVIS_PHP_VERSION" == "7.2" ] ; then composer test-cov; else composer test; fi - if [ "$TRAVIS_PHP_VERSION" == "7.3" ]; then composer test-cov; else composer test; fi
after_script: after_script:
- if [ "$TRAVIS_PHP_VERSION" == "7.2" ]; then composer test-cov-upload; fi - if [ "$TRAVIS_PHP_VERSION" == "7.3" ]; then composer test-cov-upload; fi
...@@ -47,16 +47,16 @@ ...@@ -47,16 +47,16 @@
}, },
"scripts": { "scripts": {
"check-code": [ "check-code": [
"\"vendor/bin/phpcs\" --standard=phpcs.xml -snp src/ tests/" "\"vendor/bin/phpcs\" -snp src/ tests/"
], ],
"test": [ "test": [
"\"vendor/bin/phpunit\"" "\"vendor/bin/phpunit\""
], ],
"test-cov": [ "test-cov": [
"\"vendor/bin/phpunit\" --coverage-clover build/logs/clover.xml" "\"vendor/bin/phpunit\" --coverage-clover clover.xml"
], ],
"test-cov-upload": [ "test-cov-upload": [
"wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml" "wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover clover.xml"
] ]
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment