File tree Expand file tree Collapse file tree 10 files changed +27
-13
lines changed Expand file tree Collapse file tree 10 files changed +27
-13
lines changed Original file line number Diff line number Diff line change @@ -9,3 +9,4 @@ composer-tools.* export-ignore
9
9
docs export-ignore
10
10
phpstan.neon export-ignore
11
11
tests export-ignore
12
+ * .md export-ignore
Original file line number Diff line number Diff line change 1
1
/vendor
2
+ /vendor-tools
2
3
/tests /_log /*
3
4
/tests /_temp /*
4
5
/composer * .lock
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ $finder = PhpCsFixer\Finder::create()
5
5
->ignoreDotFiles (false )
6
6
->exclude ('_helpers ' )
7
7
->exclude ('_temp ' )
8
+ ->exclude ('vendor-tools ' )
8
9
->in (__DIR__ );
9
10
10
11
return PhpCsFixer \Config::create ()
Original file line number Diff line number Diff line change @@ -16,8 +16,7 @@ matrix:
16
16
17
17
install :
18
18
- export PATH="$PATH:$HOME/.composer/vendor/bin"
19
- - composer global require friendsofphp/php-cs-fixer ^2.0.0
20
- - composer global require phpstan/phpstan ^0.6.0
19
+ - if php -v | grep -q 'PHP 7'; then composer tools; fi
21
20
- composer global require satooshi/php-coveralls ^1.0.0
22
21
- composer update --no-interaction
23
22
@@ -26,8 +25,8 @@ before_script:
26
25
- vendor/bin/codecept build
27
26
28
27
script :
29
- - php- cs-fixer fix --dry-run
30
- - phpstan analyse --level=4 --configuration=phpstan.neon src tests
28
+ - if php -v | grep -q 'PHP 7'; then vendor-tools/bin/php- cs-fixer fix --dry-run; fi
29
+ - if php -v | grep -q 'PHP 7'; then vendor-tools/bin/ phpstan analyse --level=4 --configuration=phpstan.neon src tests; fi
31
30
- vendor/bin/codecept run $coverage
32
31
33
32
after_success :
Original file line number Diff line number Diff line change @@ -10,10 +10,6 @@ settings:
10
10
bootstrap : _bootstrap.php
11
11
log : true
12
12
13
- extensions :
14
- enabled :
15
- - Arachne\Codeception\Tracy\Logger
16
-
17
13
coverage :
18
14
enabled : true
19
15
include :
Original file line number Diff line number Diff line change
1
+ {
2
+ "require-dev" : {
3
+ "friendsofphp/php-cs-fixer" : " ^2.0.0" ,
4
+ "nette/http" : " ^3.0.0" ,
5
+ "phpstan/phpstan" : " ^0.6.3" ,
6
+ "phpstan/phpstan-nette" : " ^0.6.1"
7
+ },
8
+ "minimum-stability" : " alpha" ,
9
+ "config" : {
10
+ "vendor-dir" : " vendor-tools"
11
+ }
12
+ }
Original file line number Diff line number Diff line change
1
+ COMPOSER=composer-tools.json composer update
Original file line number Diff line number Diff line change 45
45
" @analyse" ,
46
46
" @test"
47
47
],
48
- "fix" : " php-cs-fixer fix" ,
49
- "analyse" : " phpstan analyse --no-progress --level=4 --configuration=phpstan.neon src tests" ,
48
+ "tools" : " sh composer-tools.sh" ,
49
+ "fix" : " \" vendor-tools/bin/php-cs-fixer\" fix" ,
50
+ "analyse" : " \" vendor-tools/bin/phpstan\" analyse --no-progress --level=4 --configuration=phpstan.neon src tests" ,
50
51
"test" : [
51
52
" \" vendor/bin/codecept\" build" ,
52
53
" \" vendor/bin/codecept\" run"
Original file line number Diff line number Diff line change
1
+ includes :
2
+ - vendor-tools/phpstan/phpstan-nette/extension.neon
3
+ - vendor-tools/phpstan/phpstan-nette/rules.neon
4
+
1
5
parameters :
2
6
ignoreErrors :
3
- - '#^Arachne\\Codeception\\Http\\Request::__construct\ (\ ) does not call parent constructor from Nette\\Http\\Request #'
Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ How to run tests
3
3
4
4
```
5
5
# install php-cs-fixer and phpstan
6
- composer global require friendsofphp/php-cs-fixer
7
- composer global require phpstan/phpstan
6
+ composer tools
8
7
9
8
# go to the project's root directory, but NOT the tests subdirectory
10
9
cd <project_dir>
You can’t perform that action at this time.
0 commit comments