From 8be46038876c63e32c5341c1b336fc7811f96b33 Mon Sep 17 00:00:00 2001 From: Odin Date: Thu, 18 Oct 2018 21:38:06 +0200 Subject: [PATCH] chore: update codeclimate integration --- .travis.yml | 23 +++++++++++++++++++---- README.md | 2 +- composer.json | 1 - phpunit.xml.dist | 1 - 4 files changed, 20 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 11b7d29..16ba0c7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,24 @@ language: php -before_script: composer install php: -- 5.6 -- 7.0 -- hhvm + - 5.6 + - 7.0 + - hhvm + +before_script: + - composer install + - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter + - chmod +x ./cc-test-reporter + - export GIT_COMMIT_SHA=$TRAVIS_COMMIT + - export GIT_BRANCH=$TRAVIS_BRANCH + - ./cc-test-reporter before-build + +script: + - vendor/bin/phpunit --coverage-clover ./build/logs/clover.xml + +after_success: + - ./cc-test-reporter after-build --exit-code 0 --debug + notifications: + email: false slack: secure: WVnUU0fkZS75md3mm7B08SxhP3HDeHbJ8GTPR1DUVjK3MHAmKeSah/plNNxn9I/TdlXnHzQO5WBN33nUq0ODGGT4WFzFa66YTX2tb+bNSmewBOv82hEoITTI1PI9SLq0WNtcamHWCM3Rt1XtiZb3DQk/OcUfiWrrn74q4PPX+VY= diff --git a/README.md b/README.md index 908399f..5c2d8cd 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Keboola CSV reader/writer [![Build Status](https://secure.travis-ci.org/keboola/php-csv.png)](http://travis-ci.org/keboola/php-csv) +# Keboola CSV reader/writer [![Build Status](https://travis-ci.org/keboola/php-csv.svg?branch=master)](https://travis-ci.org/keboola/php-csv) [![Latest Stable Version](https://poser.pugx.org/keboola/csv/v/stable.svg)](https://packagist.org/packages/keboola/csv) [![License](https://poser.pugx.org/keboola/csv/license.svg)](https://packagist.org/packages/keboola/csv) [![Total Downloads](https://poser.pugx.org/keboola/csv/downloads.svg)](https://packagist.org/packages/keboola/csv) diff --git a/composer.json b/composer.json index d8c631e..f18e95e 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,6 @@ }, "require-dev": { "phpunit/phpunit": "^5.7", - "codeclimate/php-test-reporter": "^0.4", "squizlabs/php_codesniffer": "^3.2" } } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index bdd149b..9381612 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -7,7 +7,6 @@ convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" - syntaxCheck="false" bootstrap="tests/bootstrap.php">