Skip to content

Commit 0421964

Browse files
committed
Attempting to fix travis/CodeClimate integration
1 parent 7f4ca94 commit 0421964

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.idea/
22
vendor/
33
composer.lock
4-
_db/
4+
_db/
5+
build/

.travis.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,13 @@ install: composer install
2525

2626
before_script:
2727
- mkdir -p build/logs
28+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
29+
- chmod +x ./cc-test-reporter
30+
- ./cc-test-reporter before-build
2831

2932
script: vendor/bin/phpunit --coverage-clover build/logs/clover.xml
3033

3134
after_script:
3235
- php vendor/bin/coveralls -v
33-
- vendor/bin/test-reporter
36+
- ./cc-test-reporter after-build --coverage-input-type clover --exit-code $TRAVIS_TEST_RESULT
37+

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
"phpunit/phpunit": "~4.8||~5.7",
2020
"mockery/mockery": "^0.9.9",
2121
"laravel/laravel": "^5.2",
22-
"codeclimate/php-test-reporter": "dev-master",
2322
"doctrine/dbal": "^2.5",
24-
"laravel/browser-kit-testing": "^2.0"
23+
"laravel/browser-kit-testing": "^2.0",
24+
"php-coveralls/php-coveralls": "^2.0"
2525
},
2626
"autoload": {
2727
"psr-4": {

phpunit.xml.dist

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
<directory suffix=".php">./src</directory>
2727
</whitelist>
2828
</filter>
29+
<logging>
30+
<log type="coverage-clover" target="build/logs/clover.xml"/>
31+
</logging>
2932
<php>
3033
<env name="APP_ENV" value="testing"/>
3134
<env name="APP_DEBUG" value="true"/>

0 commit comments

Comments
 (0)