Skip to content

Commit 2c2de4d

Browse files
committed
Travis CI and Scrutinizer support
1 parent 3be0caa commit 2c2de4d

File tree

3 files changed

+52
-1
lines changed

3 files changed

+52
-1
lines changed

.scrutinizer.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
checks:
2+
php:
3+
code_rating: true
4+
5+
build:
6+
tests:
7+
override:
8+
command: "php -v"
9+
10+
tools:
11+
external_code_coverage: true
12+
php_analyzer: true
13+
php_changetracking: true
14+
php_code_sniffer:
15+
config:
16+
standard: "PSR2"
17+
php_mess_detector: true
18+
19+
filter:
20+
excluded_paths:
21+
- tests/*
22+
- src/Exception/*

.travis.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
language: php
2+
3+
sudo: false
4+
5+
php:
6+
- 7.1
7+
- 7.2
8+
9+
before_install:
10+
- composer self-update
11+
12+
install:
13+
- composer update
14+
15+
script:
16+
- vendor/bin/phpunit
17+
18+
after_script:
19+
- wget https://scrutinizer-ci.com/ocular.phar
20+
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1-
# ![Igni Logo](https://github.com/igniphp/common/blob/master/logo/full.svg)
1+
# ![Igni logo](https://github.com/igniphp/common/blob/master/logo/full.svg)
2+
[![Build Status](https://travis-ci.org/igniphp/reflection-api.svg?branch=master)](https://travis-ci.org/igniphp/reflection-api)
3+
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/igniphp/reflection-api/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/igniphp/reflection-api/?branch=master)
4+
[![Code Coverage](https://scrutinizer-ci.com/g/igniphp/reflection-api/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/igniphp/reflection-api/?branch=master)
25

6+
## Installation
7+
```
8+
composer require igniphp/reflection-api
9+
```
310

411
## Reflection API
12+
Licensed under MIT License.
13+
514
Reflection api provides tools that allows to:
615
- read and write object's properties
716
- build classes on runtime

0 commit comments

Comments
 (0)