Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

Commit 5aa773a

Browse files
mabarMilan Felix Šulc
authored andcommitted
Update build
1 parent ef6e6f7 commit 5aa773a

File tree

11 files changed

+53
-53
lines changed

11 files changed

+53
-53
lines changed

.editorconfig

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ indent_style = tab
1111
indent_size = tab
1212
tab_width = 4
1313

14-
[*.md]
15-
indent_style = space
16-
indent_size = 4
17-
18-
[{composer.json,package.json,.travis.yml}]
14+
[{*.json,*.yml,*.md}]
1915
indent_style = space
2016
indent_size = 2

.gitattributes

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ tests export-ignore
66
.gitattributes export-ignore
77
.gitignore export-ignore
88
.travis.yml export-ignore
9-
LICENSE export-ignore
10-
README.md export-ignore
119
phpstan.neon export-ignore
12-
ruleset.xml
10+
README.md export-ignore
11+
ruleset.xml export-ignore

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,5 @@
66
/composer.lock
77

88
# Tests
9-
/temp/
10-
/tests/*.log
11-
/tests/tmp
12-
/tests/coverage.html
9+
/temp
1310
/coverage.xml

.travis.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
language: php
2-
32
php:
43
- 7.1
54
- 7.2
5+
- 7.3
66

77
before_install:
8-
# turn off XDebug
8+
# Turn off XDebug
99
- phpenv config-rm xdebug.ini || return 0
1010

1111
install:
1212
# Composer
1313
- travis_retry composer install --no-progress --prefer-dist
1414

1515
script:
16-
# Nette/Tester
17-
- composer run-script tester
16+
# Tests
17+
- composer run-script tests
18+
19+
after_failure:
20+
# Print *.actual content
21+
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
1822

1923
jobs:
2024
include:
@@ -23,41 +27,37 @@ jobs:
2327
install:
2428
- travis_retry composer update --no-progress --prefer-dist --prefer-lowest
2529
script:
26-
- composer run-script tester
27-
28-
- env: title="Lowest Dependencies 7.2"
29-
php: 7.2
30-
install:
31-
- travis_retry composer update --no-progress --prefer-dist --prefer-lowest
32-
script:
33-
- composer run-script tester
30+
- composer run-script tests
3431

3532
- stage: Quality Assurance
36-
php: 7.2
33+
php: 7.1
3734
script:
3835
- composer run-script qa
3936

37+
- stage: Phpstan
38+
php: 7.1
39+
script:
40+
- composer run-script phpstan-install
41+
- composer run-script phpstan
42+
4043
- stage: Test Coverage
41-
php: 7.2
44+
if: branch = master AND type = push
45+
php: 7.1
4246
script:
4347
- composer run-script coverage
4448
after_script:
45-
- wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.0.0/php-coveralls.phar
49+
- wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.1.0/php-coveralls.phar
4650
- php php-coveralls.phar --verbose --config tests/.coveralls.yml
4751

48-
- stage: Phpstan
49-
php: 7.2
52+
- stage: Outdated Dependencies
53+
if: branch = master AND type = cron
54+
php: 7.1
5055
script:
51-
- composer run-script phpstan-install
52-
- composer run-script phpstan
56+
- composer outdated --direct --strict
5357

5458
allow_failures:
5559
- stage: Test Coverage
5660

57-
after_failure:
58-
# Print *.actual content
59-
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
60-
6161
sudo: false
6262

6363
cache:

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
[![Build Status](https://img.shields.io/travis/contributte/deployer-extension.svg?style=flat-square)](https://travis-ci.org/contributte/deployer-extension)
88
[![Code coverage](https://img.shields.io/coveralls/contributte/deployer-extension.svg?style=flat-square)](https://coveralls.io/r/contributte/deployer-extension)
99
[![Licence](https://img.shields.io/packagist/l/contributte/deployer-extension.svg?style=flat-square)](https://packagist.org/packages/contributte/deployer-extension)
10-
1110
[![Downloads this Month](https://img.shields.io/packagist/dm/contributte/deployer-extension.svg?style=flat-square)](https://packagist.org/packages/contributte/deployer-extension)
1211
[![Downloads total](https://img.shields.io/packagist/dt/contributte/deployer-extension.svg?style=flat-square)](https://packagist.org/packages/contributte/deployer-extension)
1312
[![Latest stable](https://img.shields.io/packagist/v/contributte/deployer-extension.svg?style=flat-square)](https://packagist.org/packages/contributte/deployer-extension)
13+
[![PHPStan](https://img.shields.io/badge/PHPStan-enabled-brightgreen.svg?style=flat)](https://github.com/phpstan/phpstan)
1414

1515
## Discussion / Help
1616

@@ -51,13 +51,13 @@ $ composer require minetro/deployer-extension
5151
</td>
5252
<td align="center">
5353
<a href="https://github.com/mabar">
54-
<img width="150" height="150" src="https://avatars0.githubusercontent.com/u/20974277?s=400&v=4">
54+
<img width="150" height="150" src="https://avatars0.githubusercontent.com/u/20974277?s=150&v=4">
5555
</a>
5656
</br>
5757
<a href="https://github.com/mabar">Marek Bartoš</a>
5858
</td>
5959
</tr>
60-
<tbody>
60+
</tbody>
6161
</table>
6262

6363
-----

composer.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"name": "contributte/deployer-extension",
33
"description": "Ftp-Deployment Extension for Nette",
44
"type": "library",
5-
"license": ["BSD-3-Clause"],
5+
"license": "BSD-3-Clause",
66
"homepage": "https://github.com/contributte/deployer-extension",
77
"authors": [
88
{
9-
"name": "Milan Felix Sulc",
9+
"name": "Milan Felix Šulc",
1010
"homepage": "https://f3l1x.io"
1111
}
1212
],
@@ -32,17 +32,18 @@
3232
"linter src tests",
3333
"codesniffer src tests"
3434
],
35-
"tester": [
35+
"tests": [
3636
"tester -s -p php --colors 1 -C tests/cases"
3737
],
3838
"coverage": [
39-
"tester -s -p php --colors 1 -C -d extension=xdebug.so --coverage ./coverage.xml --coverage-src ./src tests/cases"
39+
"tester -s -p phpdbg --colors 1 -C --coverage ./coverage.xml --coverage-src ./src tests/cases"
4040
],
4141
"phpstan-install": [
4242
"mkdir -p temp/phpstan",
43-
"composer require -d temp/phpstan phpstan/phpstan:0.10.1",
44-
"composer require -d temp/phpstan phpstan/phpstan-nette:0.10",
45-
"composer require -d temp/phpstan phpstan/phpstan-strict-rules:0.10"
43+
"composer require -d temp/phpstan phpstan/phpstan:^0.10",
44+
"composer require -d temp/phpstan phpstan/phpstan-deprecation-rules:^0.10",
45+
"composer require -d temp/phpstan phpstan/phpstan-nette:^0.10",
46+
"composer require -d temp/phpstan phpstan/phpstan-strict-rules:^0.10"
4647
],
4748
"phpstan": [
4849
"temp/phpstan/vendor/bin/phpstan analyse -l max -c phpstan.neon src"

phpstan.neon

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
includes:
2-
- temp/phpstan/vendor/phpstan/phpstan-strict-rules/rules.neon
2+
- temp/phpstan/vendor/phpstan/phpstan-deprecation-rules/rules.neon
33
- temp/phpstan/vendor/phpstan/phpstan-nette/extension.neon
44
- temp/phpstan/vendor/phpstan/phpstan-nette/rules.neon
5+
- temp/phpstan/vendor/phpstan/phpstan-strict-rules/rules.neon
6+
57
parameters:
68
ignoreErrors:
7-
- '#^Contributte\\Deployer\\Logging\\StdOutLogger::__construct\(\) does not call parent constructor from Deployment\\Logger#'
9+
- '#^Contributte\\Deployer\\Logging\\StdOutLogger::__construct\(\) does not call parent constructor from Deployment\\Logger#'

src/DI/DeployerExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function loadConfiguration(): void
6060

6161
// Add deploy manager
6262
$builder->addDefinition($this->prefix('manager'))
63-
->setClass('Minetro\Deployer\Manager', [
63+
->setFactory('Minetro\Deployer\Manager', [
6464
new Statement('Minetro\Deployer\Runner'),
6565
new Statement('Minetro\Deployer\Config\ConfigFactory', [$config]),
6666
]);

tests/.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Folders - recursive
2+
*.expected
3+
*.actual
4+
5+
# Folders
6+
/tmp
7+
8+
# Files
9+
/*.log
10+
/*.html

tests/php-unix.ini

Whitespace-only changes.

0 commit comments

Comments
 (0)