Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

Commit c3f7851

Browse files
authored
4.0.1
4.0.1
2 parents daba1d5 + 015f41b commit c3f7851

File tree

4 files changed

+53
-20
lines changed

4 files changed

+53
-20
lines changed

.coveralls.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# for php-coveralls
2+
service_name: travis-ci
3+
coverage_clover: coverage.xml
4+
json_path: coverage.json

.travis.yml

Lines changed: 44 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,56 @@
1+
env:
2+
- PHP_BIN=php
3+
- PHP_BIN=php-cgi
4+
15
language: php
26
php:
3-
- 7.1
4-
- 7.2
5-
- 7.3
7+
- '7.1'
8+
- '7.2'
9+
- '7.3'
610

11+
sudo: false
712
cache:
813
directories:
914
- "$HOME/.composer/cache"
1015

1116
before_script:
12-
- travis_retry composer self-update
17+
- phpenv config-rm xdebug.ini || return 0
1318

1419
install:
15-
- travis_retry composer install --no-interaction --prefer-source
20+
- travis_retry composer install --no-progress --prefer-dist
1621

1722
script:
18-
- travis_retry composer tests
23+
- vendor/bin/tester -p $PHP_BIN tests -s
24+
25+
after_failure:
26+
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
27+
28+
jobs:
29+
include:
30+
- name: Lowest Dependencies
31+
env: PHP_BIN=php
32+
install:
33+
- travis_retry composer update --no-progress --prefer-dist --prefer-lowest --prefer-stable
34+
35+
- stage: Code Sniffer
36+
script:
37+
- vendor/bin/phpcs --standard=phpcs.xml --encoding=utf-8 -sp src/ tests/
38+
39+
- stage: Static Analysis
40+
script:
41+
- vendor/bin/phpstan analyse -c phpstan.neon -l 7 src/
42+
43+
- stage: Code Coverage
44+
script:
45+
- vendor/bin/tester -p phpdbg tests -s --coverage ./coverage.xml --coverage-src ./src
46+
after_script:
47+
- wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
48+
- php coveralls.phar --verbose --config .coveralls.yml
49+
50+
allow_failures:
51+
- stage: Static Analysis
52+
- stage: Code Coverage
53+
- stage: Code Sniffer
54+
55+
notifications:
56+
email: false

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# Client for electronic records of sale
22

3-
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/07f653430c254d0bbf3f40c8595f0c89)](https://www.codacy.com/app/mail_72/PHP-EET?utm_source=github.com&utm_medium=referral&utm_content=filipsedivy/PHP-EET&utm_campaign=badger)
4-
[![Build Status](https://travis-ci.org/filipsedivy/PHP-EET.svg?branch=master)](https://travis-ci.org/filipsedivy/PHP-EET) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://packagist.org/packages/filipsedivy/php-eet)
5-
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/58a3ede2-9585-4e37-95ed-ca7726617ea8/mini.png)](https://insight.sensiolabs.com/projects/58a3ede2-9585-4e37-95ed-ca7726617ea8)
3+
[![Build Status](https://travis-ci.org/filipsedivy/PHP-EET.svg?branch=master)](https://travis-ci.org/filipsedivy/PHP-EET)
4+
[![Coverage Status](https://coveralls.io/repos/filipsedivy/PHP-EET/application/badge.svg?branch=master)](https://coveralls.io/github/filipsedivy/PHP-EET?branch=master)
5+
[![Monthly Downloads](https://poser.pugx.org/filipsedivy/php-eet/d/monthly)](https://packagist.org/packages/filipsedivy/php-eet)
6+
[![Latest Stable Version](https://poser.pugx.org/filipsedivy/PHP-EET/v/stable)](https://github.com/filipsedivy/PHP-EET/releases)
7+
[![GitHub license](https://img.shields.io/github/license/filipsedivy/PHP-EET)](https://github.com/filipsedivy/PHP-EET/blob/master/LICENSE)
68

79
If the library is useful, **[please make a donation now](https://filipsedivy.cz/donation?to=PHP-EET)**. Thank you!
810

composer.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,5 @@
4747
"prefer-stable": true,
4848
"config": {
4949
"sort-packages": true
50-
},
51-
"scripts": {
52-
"tests": [
53-
"@phpstan",
54-
"@phpcs",
55-
"@tester"
56-
],
57-
"phpstan": "phpstan analyse -c phpstan.neon -l 7 src/",
58-
"phpcs": "phpcs --standard=phpcs.xml --encoding=utf-8 --colors -sp src/ tests/",
59-
"tester": "tester -c tests/php.ini tests/",
60-
"coverage": "tester . -c tests/php.ini --coverage coverage.html --coverage-src src/ --colors 1"
6150
}
6251
}

0 commit comments

Comments
 (0)