diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 000000000..a8172feb1 --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1 @@ +json_path: coveralls-upload.json diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..5c792ac52 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,24 @@ +language: php + +dist: trusty + +matrix: + include: + - php: 7.1 + - php: 7.2 + - php: 7.3 + env: ANALYSIS='true' + - php: nightly + + allow_failures: + - php: nightly + +before_script: +- composer require php-coveralls/php-coveralls:^2.1.0 +- composer install -n + +script: +- if [[ "$ANALYSIS" == 'true' ]]; then vendor/bin/phpunit --coverage-clover clover.xml ; fi + +after_success: +- if [[ "$ANALYSIS" == 'true' ]]; then vendor/bin/php-coveralls --coverage_clover=clover.xml -v ; fi