From b07596bfddffae0bc1fe8d5891b4893d743904e8 Mon Sep 17 00:00:00 2001 From: Thiago Paes Date: Sat, 10 Nov 2018 04:14:04 -0200 Subject: [PATCH] chore(travis): update travis --- .travis.yml | 23 +++++++++++++++++------ README.md | 14 ++++++-------- 2 files changed, 23 insertions(+), 14 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7d38bb3..64d7fcf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,21 +1,32 @@ language: php +sudo: false + +env: + global: + - GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi) php: - 7.1 - 7.2 - nightly + - hhvm matrix: + fast_finish: true allow_failures: - php: nightly + - php: hhvm before_script: - - composer selfupdate - - composer install --dev --prefer-dist - - composer require --dev codeclimate/php-test-reporter + - if [[ $TRAVIS_PHP_VERSION = '7.1' ]]; then PHPUNIT_FLAGS="--coverage-clover ./clover.xml"; else PHPUNIT_FLAGS=""; fi + +install: + - composer self-update + - composer install --dev --prefer-dist -o script: - - ./vendor/bin/phpunit --coverage-clover tmp/clover.xml + - ./vendor/bin/phpunit $PHPUNIT_FLAGS -after_success: - - ./vendor/bin/test-reporter --coverage-report tmp/clover.xml \ No newline at end of file +after_script: + - wget https://scrutinizer-ci.com/ocular.phar + - if [ -f clover.xml ]; then php ocular.phar code-coverage:upload --format=php-clover ./clover.xml; fi diff --git a/README.md b/README.md index 8b0e2cd..d7526e2 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,6 @@ Centercob ========= [![Build Status](https://travis-ci.org/mrprompt/Centercob.svg?branch=master)](https://travis-ci.org/mrprompt/Centercob) -[![Code Climate](https://codeclimate.com/github/mrprompt/Centercob/badges/gpa.svg)](https://codeclimate.com/github/mrprompt/Centercob) -[![Test Coverage](https://codeclimate.com/github/mrprompt/Centercob/badges/coverage.svg)](https://codeclimate.com/github/mrprompt/Centercob/coverage) -[![Issue Count](https://codeclimate.com/github/mrprompt/Centercob/badges/issue_count.svg)](https://codeclimate.com/github/mrprompt/Centercob) Biblioteca de integração com a Centercob por meio de troca de arquivos de remessa. @@ -17,6 +14,12 @@ A integração possui suporte a: ## Dependências - PHP 7.1+ + +## Instalação via Composer + +``` +composer.phar require mrprompt/centercob +``` ## Exemplos @@ -29,8 +32,3 @@ Descrição dos exemplos - samples/processado.php - Leitura do arquivo de remessa processado - samples/recebido.php - Leitura do arquivo de retorno -## Instalação via Composer - -``` -composer.phar require mrprompt/centercob -```