Skip to content

Commit

Permalink
Added Travis, Scrutinizer and Coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
janlanger committed Jan 11, 2016
1 parent 86c6eb3 commit 562033a
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
service_name: travis-ci
coverage_clover: build/log/clover.xml
json_path: build/log/coveralls.json
30 changes: 30 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
checks:
php:
side_effects_or_types: false
psr2_switch_declaration: false
psr2_class_declaration: false
non_commented_empty_catch_block: false
one_class_per_file: false
no_underscore_prefix_in_properties: false
no_underscore_prefix_in_methods: false
switch_fallthrough_commented: false
single_namespace_per_use: false
require_scope_for_properties: false
require_scope_for_methods: false
php5_style_constructor: false
no_trailing_whitespace: false
no_short_open_tag: false
no_global_keyword: false
no_exit: false
no_error_suppression: false
no_commented_out_code: false
encourage_shallow_comparison: false
blank_line_after_namespace_declaration: false
avoid_usage_of_logical_operators: false
avoid_superglobals: false
avoid_length_functions_in_loops: false
avoid_closing_tag: false
avoid_aliased_php_functions: false
filter:
excluded_paths:
- vendor/*
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
language: php

php:
- 5.6
- 7.0
- nightly
- hhvm

env:
- # default environment without variables
- COMPOSER_DEPENDENCIES_OPTIONS="--prefer-lowest --prefer-stable"

matrix:
fast_finish: true
allow_failures:
- php: nightly
- php: hhvm

before_script:
- composer self-update

script:
- composer update --no-interaction --prefer-source $COMPOSER_DEPENDENCIES_OPTIONS
- vendor/bin/phing

after_script:
- php vendor/bin/coveralls -v
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"phing/phing": "~2.12",
"phpunit/phpunit": "^5.0.4",
"slevomat/coding-standard": "^1.0.5",
"guzzlehttp/guzzle": "^6.1"
"guzzlehttp/guzzle": "^6.1",
"satooshi/php-coveralls": "^1.0"
},
"suggest": {
"guzzlehttp/guzzle": "HTTP client for usage of GuzzleHttpClient",
Expand Down
5 changes: 5 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CSOB gateway

[![Build Status](https://img.shields.io/travis/slevomat/csob-gateway/master.svg?style=flat-square)](https://travis-ci.org/slevomat/csob-gateway)
[![Code Coverage](https://img.shields.io/coveralls/slevomat/csob-gateway.svg?style=flat-square)](https://coveralls.io/r/slevomat/csob-gateway)
[![Latest Stable Version](https://img.shields.io/packagist/v/slevomat/csob-gateway.svg?style=flat-square)](https://packagist.org/packages/slevomat/csob-gateway)
[![Composer Downloads](https://img.shields.io/packagist/dt/slevomat/csob-gateway.svg?style=flat-square)](https://packagist.org/packages/slevomat/csob-gateway)

This repository provides a client library for ČSOB Payment Gateway.

- [CSOB payment gateway wiki](https://github.com/csob/paymentgateway/wiki)
Expand Down
1 change: 1 addition & 0 deletions tests/phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
showUncoveredFiles="true"
showOnlySummary="true"
/>
<log type="coverage-clover" target="../build/log/clover.xml"/>
</logging>

<filter>
Expand Down

0 comments on commit 562033a

Please sign in to comment.