Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1 from hugovk/coveralls
Browse files Browse the repository at this point in the history
Add coverage for unit tests
  • Loading branch information
crisu83 committed May 7, 2014
2 parents c417be6 + d0b3a10 commit cc58b15
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
20 changes: 18 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,30 @@
language: php

php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm

before_script:
- composer self-update
- composer install --prefer-source
- composer update satooshi/php-coveralls --dev

script: vendor/bin/codecept run unit
script: vendor/bin/codecept run unit --coverage --report --xml

after_success:
- mkdir build
- mkdir build/logs
- cp tests/_log/coverage.xml build/logs/clover.xml
- php vendor/bin/coveralls -v

matrix:
allow_failures:
- php: 5.3
- php: hhvm

branches:
only:
- master
- master
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
paytrail-php
============

[![Build Status](https://travis-ci.org/nordsoftware/paytrail-php.svg?branch=master)](https://travis-ci.org/nordsoftware/paytrail-php)
[![Build Status](https://travis-ci.org/nordsoftware/paytrail-php.svg?branch=master)](https://travis-ci.org/nordsoftware/paytrail-php) [![Coverage Status](https://coveralls.io/repos/hugovk/paytrail-php/badge.png?branch=coveralls)](https://coveralls.io/r/hugovk/paytrail-php?branch=coveralls)

Paytrail REST client for PHP.

Expand Down
6 changes: 5 additions & 1 deletion codeception.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ settings:
suite_class: \PHPUnit_Framework_TestSuite
colors: false
memory_limit: 1024M
log: true
log: true
coverage:
enabled: true
include:
- src/*
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"guzzle/guzzle": "~3.7"
},
"require-dev": {
"codeception/codeception": "@stable"
"codeception/codeception": "@stable",
"satooshi/php-coveralls": "dev-master"
},
"autoload": {
"psr-0": {
Expand Down

0 comments on commit cc58b15

Please sign in to comment.