diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000..41492ae --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1,3 @@ +service_name: travis-ci +coverage_clover: ./tmp/clover.xml +json_path: ./tmp/coverage.json \ No newline at end of file diff --git a/.gitignore b/.gitignore index 87d072d..6ec374b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /.idea /vendor -/composer.lock \ No newline at end of file +/composer.lock +/tmp \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 1ce66c4..78fcced 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,23 @@ language: php + +matrix: + include: + - php: 7.2 + env: PHPUNIT_FLAGS="--coverage-clover ./tmp/clover.xml" + php: - '7.1' - - '7.2' - '7.3' - nightly + install: 'composer install' + +script: + - vendor/bin/phpunit $PHPUNIT_FLAGS + +after_script: + - '[[ $PHPUNIT_FLAGS = "" ]] || ./vendor/bin/php-coveralls --verbose' + branches: only: - master diff --git a/composer.json b/composer.json index a26ac0f..b384b6c 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,8 @@ "require-dev": { "phpoffice/phpspreadsheet": "^1.5", "phpunit/phpunit": "^7.5", - "endroid/qr-code": "^3.2" + "endroid/qr-code": "^3.2", + "satooshi/php-coveralls": "^2.0" }, "autoload-dev": { "psr-4": {