summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold Daniels <arnold@jasny.net>2016-10-10 23:26:50 +0200
committerminstel <minstel@yandex.ru>2016-10-17 22:07:44 +0300
commit46daa66a1d602463a979af3c0f1970cb7914628c (patch)
treebeea98457b5e4343210f015537d43ebeff382ec0
parent7d4be81777f3a9afcbc366e528bf2284265c16b6 (diff)
downloadrouter-46daa66a1d602463a979af3c0f1970cb7914628c.zip
router-46daa66a1d602463a979af3c0f1970cb7914628c.tar.gz
router-46daa66a1d602463a979af3c0f1970cb7914628c.tar.bz2
Added travis config and added badges to README
-rw-r--r--.travis.yml20
-rw-r--r--README.md2
2 files changed, 22 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..6f0320f
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,20 @@
+language: php
+
+php:
+ - 5.6
+ - 7.0
+
+branches:
+ only:
+ - master
+
+install:
+ - composer install
+ - wget https://scrutinizer-ci.com/ocular.phar -O "$HOME/ocular.phar"
+
+script:
+ - vendor/bin/phpunit --coverage-clover cache/logs/clover.xml
+
+after_success:
+ - php "$HOME/ocular.phar" code-coverage:upload --format=php-clover cache/logs/clover.xml
+
diff --git a/README.md b/README.md
index 5aa2cf1..54e1f66 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,8 @@ Jasny Router
============
[![Build Status](https://secure.travis-ci.org/jasny/router.png?branch=master)](http://travis-ci.org/jasny/router)
+[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/jasny/router/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/jasny/router/?branch=master)
+[![Code Coverage](https://scrutinizer-ci.com/g/jasny/router/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/jasny/router/?branch=master)
Installation