Skip to content
This repository has been archived by the owner on Dec 27, 2018. It is now read-only.

Commit

Permalink
Update code covering services (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny authored Jul 9, 2018
1 parent 4f217df commit 35bdba8
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 17 deletions.
21 changes: 13 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
language: php
# faster builds on new travis setup not using sudo
sudo: false
sudo: false # faster builds on new travis setup not using sudo
# PHP versions
php:
- 7.1
Expand All @@ -12,26 +11,32 @@ matrix:
allow_failures:
- php: 7.2
fast_finish: true
# cache vendor dirs
# cache Composer files
cache:
directories:
- vendor
- $COMPOSER_CACHE_DIR
# update composer it-self
install:
# update composer it-self
- composer self-update
# install package
# install coveralls.phar
- wget -c -nc --retry-connrefused --tries=0 https://github.com/php-coveralls/php-coveralls/releases/download/v2.1.0/php-coveralls.phar -O coveralls.phar
- chmod +x coveralls.phar
- php coveralls.phar --version
before_script:
#- phpenv config-rm xdebug.ini
# install packages
- composer install --no-interaction
- if [[ $COVERAGE = run ]]; then mkdir -p build/logs; PHPUNIT_FLAGS="--coverage-text --coverage-clover build/logs/clover.xml"; fi
# run PHPUnit and export code coverage log
script:
# run PHPUnit and export code coverage log
- if [[ $COVERAGE = run ]]; then phpunit -c ./ $PHPUNIT_FLAGS; fi
# docs & co
after_success:
# run coveralls
- if [[ $COVERAGE = run ]]; then travis_retry php bin/coveralls -v; fi
# submit coverage report to Coveralls
- if [[ $COVERAGE = run ]]; then travis_retry php coveralls.phar -v; fi
# Submit coverage report to codecov.io
- bash <(curl -s https://codecov.io/bash)
# build API docs
- if [[ $API_DOCS = build ]]; then vendor/bin/sami.php update sami.php; fi
# deploy docs
Expand Down
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@
> An intuitive PHP library to create a static website.
[![Build Status](https://travis-ci.org/PHPoole/library.svg?branch=master)](https://travis-ci.org/PHPoole/library)
[![Coverage Status](https://coveralls.io/repos/github/PHPoole/library/badge.svg?branch=master)](https://coveralls.io/github/PHPoole/library?branch=master)
[![Latest Stable Version](https://poser.pugx.org/phpoole/library/v/stable)](https://packagist.org/packages/phpoole/library)
[![Total Downloads](https://poser.pugx.org/narno/phpoole-library/downloads)](https://packagist.org/packages/phpoole/library)
[![License](https://poser.pugx.org/phpoole/library/license)](https://packagist.org/packages/phpoole/library)


[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/PHPoole/library/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/PHPoole/library/?branch=master)
[![Codacy Badge](https://api.codacy.com/project/badge/grade/adbaa5309cd749fc9e095ca47d347586)](https://www.codacy.com/app/Narno/PHPoole-library)
[![Maintainability](https://api.codeclimate.com/v1/badges/013e272c2eeb07f6c01a/maintainability)](https://codeclimate.com/github/PHPoole/PHPoole-library/maintainability)
[![StyleCI](https://styleci.io/repos/32327575/shield)](https://styleci.io/repos/32327575)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/f4c44315-d370-499e-8f61-d6d1ce0cadde/mini.png)](https://insight.sensiolabs.com/projects/f4c44315-d370-499e-8f61-d6d1ce0cadde)


[![Latest Stable Version](https://poser.pugx.org/phpoole/library/v/stable)](https://packagist.org/packages/phpoole/library)
[![Latest Unstable Version](https://poser.pugx.org/phpoole/library/v/unstable)](https://packagist.org/packages/phpoole/library)
[![Total Downloads](https://poser.pugx.org/narno/phpoole-library/downloads)](https://packagist.org/packages/phpoole/library)
[![License](https://poser.pugx.org/phpoole/library/license)](https://packagist.org/packages/phpoole/library)
[![codecov](https://codecov.io/gh/PHPoole/library/branch/master/graph/badge.svg)](https://codecov.io/gh/PHPoole/library)
[![Coverage Status](https://coveralls.io/repos/github/PHPoole/library/badge.svg?branch=master)](https://coveralls.io/github/PHPoole/library?branch=master)

_PHPoole/library_ is the core library of [**PHPoole CLI**](https://github.com/PHPoole/PHPoole).

Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
},
"require-dev": {
"phpunit/phpunit": "5.7.27|7.2.4",
"sami/sami": "3.3.0|4.0.16",
"php-coveralls/php-coveralls": "2.1.0"
"sami/sami": "3.3.0|4.0.16"
},
"autoload": {
"psr-4" : {
Expand Down

0 comments on commit 35bdba8

Please sign in to comment.