Skip to content

Commit

Permalink
refactoring: php:^7.1, nette v3
Browse files Browse the repository at this point in the history
  • Loading branch information
solcik committed Mar 11, 2019
1 parent 10133eb commit 291a615
Show file tree
Hide file tree
Showing 20 changed files with 973 additions and 1,091 deletions.
Empty file modified .gitignore
100755 → 100644
Empty file.
65 changes: 34 additions & 31 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,50 @@
language: php

sudo: false
php:
- 7.1
- 7.2
- 7.3

cache:
directories:
- $HOME/.composer/cache

env:
- NETTE=nette-2.4-dev
- NETTE=nette-2.4

php:
- 5.6
- 7.0

matrix:
include:
- php: 5.6
env: NETTE=nette-2.4 COMPOSER_EXTRA_ARGS="--prefer-lowest --prefer-stable"
- php: 7.0
env: NETTE=nette-2.4 COVERAGE="--coverage ./coverage.xml --coverage-src ./src" TESTER_RUNTIME="phpdbg"
allow_failures:
- php: 7.0
env: NETTE=nette-2.4 COVERAGE="--coverage ./coverage.xml --coverage-src ./src" TESTER_RUNTIME="phpdbg"

before_install:
- travis_retry composer self-update
- wget -O /tmp/composer-nette https://raw.githubusercontent.com/Kdyby/TesterExtras/master/bin/composer-nette.php
- php /tmp/composer-nette
- phpenv config-rm xdebug.ini || return 0

install:
- travis_retry composer update --no-interaction --prefer-dist $COMPOSER_EXTRA_ARGS
- travis_retry composer install --no-progress --prefer-dist
- travis_retry composer create-project --no-interaction jakub-onderka/php-parallel-lint /tmp/php-parallel-lint
- travis_retry composer create-project --no-interaction kdyby/code-checker /tmp/code-checker
- travis_retry wget -O /tmp/coveralls.phar https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar

script:
- vendor/bin/tester $COVERAGE -s -p ${TESTER_RUNTIME:-php} -c ./tests/php.ini-unix ./tests/KdybyTests/
- php /tmp/php-parallel-lint/parallel-lint.php -e php,phpt --exclude vendor .
- php /tmp/code-checker/src/code-checker.php --short-arrays

after_script:
- if [ "$COVERAGE" != "" ]; then php /tmp/coveralls.phar --verbose --config tests/.coveralls.yml || true; fi
- ./vendor/bin/tester -s -p php --colors 1 -C ./tests/Replicator

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

jobs:
include:
- env: title="Lowest Dependencies 7.1"
php: 7.1
install:
- travis_retry composer update --no-progress --prefer-dist --prefer-lowest
script:
- ./vendor/bin/tester -s -p php --colors 1 -C ./tests/Replicator

- stage: Test Coverage
php: 7.1
script:
- ./vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage ./coverage.xml --coverage-src ./src ./tests/Replicator
after_script:
- travis_retry 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
php: 7.1
script:
- composer outdated --direct --strict

allow_failures:
- stage: Test Coverage
- stage: Outdated Dependencies
68 changes: 38 additions & 30 deletions README.md
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,47 +1,55 @@
Kdyby/FormsReplicator
======
# Kdyby/FormsReplicator

[![Build Status](https://travis-ci.org/Kdyby/FormsReplicator.svg?branch=master)](https://travis-ci.org/Kdyby/FormsReplicator)
[![Downloads this Month](https://img.shields.io/packagist/dm/kdyby/forms-replicator.svg)](https://packagist.org/packages/kdyby/forms-replicator)
[![Latest stable](https://img.shields.io/packagist/v/kdyby/forms-replicator.svg)](https://packagist.org/packages/kdyby/forms-replicator)
[![Coverage Status](https://coveralls.io/repos/github/Kdyby/FormsReplicator/badge.svg?branch=master)](https://coveralls.io/github/Kdyby/FormsReplicator?branch=master)
[![Join the chat at https://gitter.im/Kdyby/Help](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Kdyby/Help)


Save me please!
---------------

The maintainer of this project has no more time to maintain it. It may even contain unfixed bugs :(

If you need something like this and you're willing to join in, you're welcome to take over this project.
-----

![help](https://cdn.kdyby.org/keyboard-help.png)
[![Build Status](https://img.shields.io/travis/Kdyby/FormsReplicator.svg?style=flat-square)](https://travis-ci.org/Kdyby/FormsReplicator)
[![Code coverage](https://img.shields.io/coveralls/Kdyby/FormsReplicator.svg?style=flat-square)](https://coveralls.io/github/Kdyby/FormsReplicator)
[![Licence](https://img.shields.io/packagist/l/Kdyby/FormsReplicator.svg?style=flat-square)](https://packagist.org/packages/kdyby/forms-replicator)
[![Downloads this Month](https://img.shields.io/packagist/dm/Kdyby/FormsReplicator.svg?style=flat-square)](https://packagist.org/packages/kdyby/forms-replicator)
[![Downloads total](https://img.shields.io/packagist/dt/Kdyby/FormsReplicator.svg?style=flat-square)](https://packagist.org/packages/kdyby/forms-replicator)
[![Latest stable](https://img.shields.io/packagist/v/Kdyby/FormsReplicator.svg?style=flat-square)](https://packagist.org/packages/kdyby/forms-replicator)

## Discussion / Help

Requirements
------------
[![Join the chat](https://img.shields.io/gitter/room/Kdyby/Help.svg?style=flat-square)](https://gitter.im/Kdyby/Help)

Kdyby/FormsReplicator requires PHP 5.5 or higher.
## Install

- [Nette Framework](https://github.com/nette/nette)
```sh
composer require kdyby/forms-replicator
```

## Versions

Installation
------------
| State | Version | Branch | PHP |
|-------------|--------------|----------|----------|
| rc | `^2.0.0@rc` | `master` | `>= 7.1` |
| stable | `^1.3.0` | `master` | `>= 5.6` |

The best way to install Kdyby/FormsReplicator is using [Composer](http://getcomposer.org/):
## Overview

```sh
$ composer require kdyby/forms-replicator:~1.1
```
- [Learn more in the documentation](https://github.com/Kdyby/FormsReplicator/blob/master/docs/en/index.md)

## Maintainers

Documentation
------------
<table>
<tbody>
<tr>
<td align="center">
<a href="https://github.com/solcik">
<img width="150" height="150" src="https://avatars2.githubusercontent.com/u/1543737?s=460&v=4">
</a>
</br>
<a href="https://github.com/solcik">David Šolc</a>
</td>
</tr>
</tbody>
</table>

Learn more in the [documentation](https://github.com/Kdyby/FormsReplicator/blob/master/docs/en/index.md).
-----

Thank you for testing, reporting and contributing.

-----

Homepage [http://www.kdyby.org](http://www.kdyby.org) and repository [http://github.com/kdyby/FormsReplicator](http://github.com/kdyby/FormsReplicator).
Homepage [https://www.kdyby.org](https://www.kdyby.org) and repository [https://github.com/Kdyby/FormsReplicator](https://github.com/Kdyby/FormsReplicator).
55 changes: 25 additions & 30 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,49 +10,44 @@
"name": "Filip Procházka",
"homepage": "http://filip-prochazka.com",
"email": "[email protected]"
},
{
"name": "David Šolc",
"homepage": "https://solc.dev",
"email": "[email protected]"
}
],
"support": {
"email": "[email protected]",
"issues": "https://github.com/kdyby/replicator/issues"
"issues": "https://github.com/Kdyby/FormsReplicator/issues"
},
"require": {
"nette/forms": "~2.4@dev"
"php": ">=7.1",
"nette/forms": "^3.0",
"nette/utils": "^3.0"
},
"require-dev": {
"php": ">=5.6",
"nette/application": "~2.4@dev",
"nette/bootstrap": "~2.4@dev",
"nette/caching": "~2.4@dev",
"nette/component-model": "~2.2@dev",
"nette/database": "~2.4@dev",
"nette/deprecated": "~2.4@dev",
"nette/di": "~2.4@dev",
"nette/finder": "~2.4@dev",
"nette/forms": "~2.4@dev",
"nette/http": "~2.4@dev",
"nette/mail": "~2.4@dev",
"nette/neon": "~2.4@dev",
"nette/php-generator": "~2.4@dev",
"nette/reflection": "~2.4@dev",
"nette/robot-loader": "~2.4@dev",
"nette/safe-stream": "~2.3@dev",
"nette/security": "~2.4@dev",
"nette/tokenizer": "~2.2@dev",
"nette/utils": "~2.4@dev",
"latte/latte": "~2.4@dev",
"tracy/tracy": "~2.4@dev",

"nette/tester": "~1.7"
"nette/application": "^3.0@rc",
"nette/bootstrap": "^3.0@rc",
"nette/di": "^3.0@rc",
"tracy/tracy": "^2.6",
"nette/tester": "^2.2"
},
"autoload": {
"psr-0": {
"Kdyby\\Replicator\\": "src/"
"psr-4": {
"Kdyby\\Replicator\\": "src/Replicator/"
}
},
"autoload-dev": {
"psr-4": {
"KdybyTests\\Replicator\\": "tests/Replicator/"
}
},
"suggest": {
"nette/di": "to use ReplicatorExtension[CompilerExtension]"
},
"extra": {
"branch-alias": {
"dev-master": "1.2-dev"
"dev-master": "2.0-dev"
}
}
}
Loading

0 comments on commit 291a615

Please sign in to comment.