Skip to content

Commit 422e3f3

Browse files
committed
Added Code Climate
1 parent bf5158f commit 422e3f3

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

.travis.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,20 @@ services:
1111

1212
sudo: true
1313

14-
before_script:
15-
- bash .travis.install-mysql-5.7.sh
16-
1714
before_install:
15+
- bash .travis.install-mysql-5.7.sh
1816
- mysql -e 'CREATE DATABASE test;'
1917

2018
install: composer install
19+
20+
before_script:
21+
- mkdir -p build/logs
22+
23+
script:
24+
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml
25+
26+
after_script:
27+
- php vendor/bin/coveralls -v
28+
- vendor/bin/test-reporter
29+
30+

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"require-dev": {
1919
"phpunit/phpunit": "~4.5||5.6.5",
2020
"mockery/mockery": "^0.9.9",
21-
"laravel/laravel": "^5.2"
21+
"laravel/laravel": "^5.2",
22+
"codeclimate/php-test-reporter": "dev-master"
2223
},
2324
"autoload": {
2425
"psr-4": {

0 commit comments

Comments
 (0)