Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# for php-coveralls
service_name: travis-ci
coverage_clover: tests/log/clover.xml
json_path: tests/log/coveralls-upload.json
9 changes: 4 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/vendor
tests/*.jasper
tests/fixture
/tests/logs
.phpcs-cache
.phpunit.result.cache
/tests/log
phpunit.xml
*.jasper
*.cache

# IDE
## Eclipse
Expand Down
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
language: php

php:
- 7.2
- 7.3
- 7.4

before_script:
- composer self-update
- travis_retry composer update --no-interaction --no-ansi --no-progress --no-suggest --optimize-autoloader
- composer install --prefer-source --no-interaction --dev

script:
- composer test

after_success:
- php vendor/bin/php-coveralls --verbose
9 changes: 9 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
Release Notes - PHPJasper - Version 3.3.0
========================================================
* Improvement
* add support to coverage tests
* add support to travisCI
* static Static Analysis with phpstan
* add phpunit.xml.dist
* new badges
________________________________________________
Release Notes - PHPJasper - Version 3.2.0
========================================================
* Improvement
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
# PHPJasper
_A PHP Report Generator_

[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/geekcom/phpjasper/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/geekcom/phpjasper/?branch=master)
[![Build Status](https://travis-ci.org/phpjasper/phpjasper.svg?branch=master)](https://travis-ci.org/phpjasper/phpjasper)
[![Coverage Status](https://coveralls.io/repos/github/PHPJasper/phpjasper/badge.svg?branch=master)](https://coveralls.io/github/PHPJasper/phpjasper?branch=master)
[![Latest Stable Version](https://poser.pugx.org/geekcom/phpjasper/v/stable)](https://packagist.org/packages/geekcom/phpjasper)
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%207.2-blue.svg?style=flat-square)](https://php.net/)
[![Total Downloads](https://poser.pugx.org/geekcom/phpjasper/downloads)](https://packagist.org/packages/geekcom/phpjasper)
[![License](https://poser.pugx.org/geekcom/phpjasper/license)](https://packagist.org/packages/geekcom/phpjasper)
[![PHPStan](https://img.shields.io/badge/PHPStan-enabled-brightgreen.svg?style=flat)](https://github.com/phpstan/phpstan)

### Docs

Expand Down
20 changes: 17 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"authors": [
{
"name": "Daniel Rodrigues Lima",
"email": "danielrodrigues-ti@hotmail.com",
"email": "geekcom@php.net",
"role": "lead"
}
],
Expand All @@ -19,8 +19,10 @@
"php": "^7.2"
},
"require-dev": {
"phpunit/phpunit": "^8.3",
"squizlabs/php_codesniffer": "3.*"
"phpunit/phpunit": "^8.4",
"php-coveralls/php-coveralls": "^2.2",
"squizlabs/php_codesniffer": "*",
"phpstan/phpstan": "^0.12.5"
},
"autoload": {
"psr-4": {
Expand All @@ -31,5 +33,17 @@
"psr-4": {
"PHPJasper\\Test\\": "tests/"
}
},
"scripts": {
"phpcs": "phpcs --standard=PSR12 -n src",
"phpcbf": "phpcbf --standard=PSR12 -n src",
"unit": "phpunit --coverage-clover ./tests/log/clover.xml --colors=always",
"unit-html": "php -d phar.readonly=0 vendor/bin/phpunit --coverage-html ./tests/log/ --colors=always",
"phpstan": "phpstan analyse src --level 0",
"test": [
"@phpcs",
"@unit",
"@phpstan"
]
}
}
Loading