Skip to content

Commit

Permalink
chore(travis): update travis
Browse files Browse the repository at this point in the history
  • Loading branch information
mrprompt committed Nov 10, 2018
1 parent b57e0c0 commit b07596b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 14 deletions.
23 changes: 17 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
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
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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

Expand All @@ -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
```

0 comments on commit b07596b

Please sign in to comment.