From 5322c24f682422a66d85cf42530dd9d31d04c578 Mon Sep 17 00:00:00 2001 From: Matias Navarro Carter Date: Fri, 12 Oct 2018 15:34:25 -0300 Subject: [PATCH] Added test coverage and allow php nighlty to fail --- .travis.yml | 16 +++- README.md | 1 + coverage.xml | 216 ----------------------------------------------- phpunit.xml.dist | 5 -- 4 files changed, 16 insertions(+), 222 deletions(-) delete mode 100644 coverage.xml diff --git a/.travis.yml b/.travis.yml index b3e34a6..2887849 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,17 @@ language: php +env: + global: + - CC_TEST_REPORTER_ID=d0568bbe98e5edb100c837e2b87c1f102d9d44bfd66662d4f648e7291c1d9193 dist: precise php: - '7.1' - '7.2' - nightly + +matrix: + allow_failures: + - php: nightly + sudo: false cache: directories: @@ -12,5 +20,11 @@ cache: before_script: - travis_retry composer self-update - travis_retry composer install --no-interaction --prefer-dist + - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter + - chmod +x ./cc-test-reporter + - ./cc-test-reporter before-build -script: composer run test \ No newline at end of file +script: composer run test + +after_script: + - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT \ No newline at end of file diff --git a/README.md b/README.md index 34cb4ef..978960f 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ Rut Chileno [![Build Status](https://travis-ci.org/mnavarrocarter/chilean-rut.svg?branch=master)](https://travis-ci.org/mnavarrocarter/chilean-rut) [![Maintainability](https://api.codeclimate.com/v1/badges/c93bd4d894722c404cfd/maintainability)](https://codeclimate.com/github/mnavarrocarter/chilean-rut/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/c93bd4d894722c404cfd/test_coverage)](https://codeclimate.com/github/mnavarrocarter/chilean-rut/test_coverage) +[![Latest Stable Version](https://poser.pugx.org/mnavarrocarter/chilean-rut/v/stable.svg)](https://packagist.org/packages/mnavarrocarter/chilean-rut) Esta librería implementa una clase Rut como un *value object* inmutable, incluyendo una api de validación flexible y extendible. diff --git a/coverage.xml b/coverage.xml deleted file mode 100644 index d36b7c9..0000000 --- a/coverage.xml +++ /dev/null @@ -1,216 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/phpunit.xml.dist b/phpunit.xml.dist index add05c1..b49369f 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -15,11 +15,6 @@ ./tests - - - - - ./src