Skip to content

Commit

Permalink
Update build
Browse files Browse the repository at this point in the history
  • Loading branch information
mabar committed Nov 4, 2018
1 parent 6a00a04 commit 91ffb42
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Expand Up @@ -5,6 +5,6 @@ tests export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.travis.yml export-ignore
README.md export-ignore
phpstan.neon export-ignore
README.md export-ignore
ruleset.xml export-ignore
24 changes: 14 additions & 10 deletions .travis.yml
Expand Up @@ -2,9 +2,7 @@ language: php
php:
- 7.1
- 7.2

# Don't build twice for PR (PR and push builds)
if: type != pull_request
- 7.3

before_install:
# Turn off XDebug
Expand All @@ -15,8 +13,12 @@ install:
- travis_retry composer install --no-progress --prefer-dist

script:
# Nette/Tester
- composer run-script tester
# Tests
- composer run-script tests

after_failure:
# Print *.actual content
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done

jobs:
include:
Expand All @@ -25,7 +27,7 @@ jobs:
install:
- travis_retry composer update --no-progress --prefer-dist --prefer-lowest
script:
- composer run-script tester
- composer run-script tests

- stage: Quality Assurance
php: 7.1
Expand All @@ -47,13 +49,15 @@ jobs:
- wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.1.0/php-coveralls.phar
- php php-coveralls.phar --verbose --config tests/.coveralls.yml

- stage: Outdated Dependencies
if: branch = master AND type = cron
php: 7.1
script:
- composer outdated --direct --strict

allow_failures:
- stage: Test Coverage

after_failure:
# Print *.actual content
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done

sudo: false

cache:
Expand Down
9 changes: 8 additions & 1 deletion README.md
Expand Up @@ -7,10 +7,10 @@
[![Build Status](https://img.shields.io/travis/contributte/application.svg?style=flat-square)](https://travis-ci.org/contributte/application)
[![Code coverage](https://img.shields.io/coveralls/contributte/application.svg?style=flat-square)](https://coveralls.io/r/contributte/application)
[![Licence](https://img.shields.io/packagist/l/contributte/application.svg?style=flat-square)](https://packagist.org/packages/contributte/application)

[![Downloads this Month](https://img.shields.io/packagist/dm/contributte/application.svg?style=flat-square)](https://packagist.org/packages/contributte/application)
[![Downloads total](https://img.shields.io/packagist/dt/contributte/application.svg?style=flat-square)](https://packagist.org/packages/contributte/application)
[![Latest stable](https://img.shields.io/packagist/v/contributte/application.svg?style=flat-square)](https://packagist.org/packages/contributte/application)
[![PHPStan](https://img.shields.io/badge/PHPStan-enabled-brightgreen.svg?style=flat)](https://github.com/phpstan/phpstan)

## Discussion / Help

Expand Down Expand Up @@ -64,6 +64,13 @@ composer require contributte/application
</br>
<a href="https://github.com/paveljanda">Pavel Janda</a>
</td>
<td align="center">
<a href="https://github.com/mabar">
<img width="150" height="150" src="https://avatars0.githubusercontent.com/u/20974277?s=150&v=4">
</a>
</br>
<a href="https://github.com/mabar">Marek Bartoš</a>
</td>
</tr>
<tbody>
</table>
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Expand Up @@ -34,18 +34,18 @@
"linter src tests",
"codesniffer src tests"
],
"tester": [
"tests": [
"tester -s -p php --colors 1 -C tests/cases"
],
"coverage": [
"tester -s -p phpdbg --colors 1 -C --coverage ./coverage.xml --coverage-src ./src tests/cases"
],
"phpstan-install": [
"mkdir -p temp/phpstan",
"composer require -d temp/phpstan phpstan/phpstan:0.10",
"composer require -d temp/phpstan phpstan/phpstan-deprecation-rules:0.10",
"composer require -d temp/phpstan phpstan/phpstan-nette:0.10",
"composer require -d temp/phpstan phpstan/phpstan-strict-rules:0.10"
"composer require -d temp/phpstan phpstan/phpstan:^0.10",
"composer require -d temp/phpstan phpstan/phpstan-deprecation-rules:^0.10",
"composer require -d temp/phpstan phpstan/phpstan-nette:^0.10",
"composer require -d temp/phpstan phpstan/phpstan-strict-rules:^0.10"
],
"phpstan": [
"temp/phpstan/vendor/bin/phpstan analyse -l max -c phpstan.neon src"
Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon
Expand Up @@ -6,4 +6,4 @@ includes:

parameters:
ignoreErrors:
- '#^Property Contributte\\Application\\Response\\Fly\\Buffer\\FileBuffer\:\:\$pointer \(resource\) does not accept resource\|false\.$#'
- '#^Property Contributte\\Application\\Response\\Fly\\Buffer\\(FileBuffer|ProcessBuffer)\:\:\$pointer \(resource\) does not accept resource\|false\.$#'

0 comments on commit 91ffb42

Please sign in to comment.