File tree Expand file tree Collapse file tree 8 files changed +2533
-754
lines changed Expand file tree Collapse file tree 8 files changed +2533
-754
lines changed Original file line number Diff line number Diff line change 1+ <?php declare (strict_types=1 );
2+
3+ use ApiClients \Tools \CsFixerConfig \PhpCsFixerConfig ;
4+ use PhpCsFixer \Config ;
5+
6+ return (function (): Config
7+ {
8+ $ paths = [
9+ __DIR__ . DIRECTORY_SEPARATOR . 'src ' ,
10+ __DIR__ . DIRECTORY_SEPARATOR . 'tests ' ,
11+ ];
12+
13+ return PhpCsFixerConfig::create ()
14+ ->setFinder (
15+ PhpCsFixer \Finder::create ()
16+ ->in ($ paths )
17+ ->append ($ paths )
18+ )
19+ ->setUsingCache (false )
20+ ;
21+ })();
Original file line number Diff line number Diff line change 11language : php
2- sudo : false
32
43# # Cache composer bits
54cache :
65 directories :
7- - $HOME/.composer/cache
8-
9- # # PHP versions we test against
10- php :
11- - 7.0
12- - 7.1
13- - nightly
14-
15- # # Environment variables
16- env :
17- - coverage=true
6+ - $HOME/.composer/cache/files
187
198# # Build matrix for lowest and highest possible targets
209matrix :
2110 include :
22- - php : 7.0
11+ - php : 7.2
2312 env :
24- - dependencies=lowest
25- - coverage=false
26- - php : 7.1
13+ - qaExtended=true
14+ - dropPlatform=false
15+ - php : nightly
16+ env :
17+ - dropPlatform=false
18+ - php : 7.2
2719 env :
2820 - dependencies=lowest
29- - coverage =false
21+ - dropPlatform =false
3022 - php : nightly
3123 env :
3224 - dependencies=lowest
33- - coverage=false
34- - php : 7.0
35- env :
36- - dependencies=highest
37- - coverage=false
38- - php : 7.1
25+ - dropPlatform=false
26+ - php : 7.2
3927 env :
4028 - dependencies=highest
41- - coverage =false
29+ - dropPlatform =false
4230 - php : nightly
4331 env :
4432 - dependencies=highest
45- - coverage =false
33+ - dropPlatform =false
4634
4735# # Install or update dependencies
4836install :
4937 - composer validate
50- - if [ "$coverage" = "false" ]; then phpenv config-rm xdebug.ini || :; fi;
38+ - if [ -z "$dropPlatform" ]; then composer config --unset platform.php; fi;
39+ - if [ -z "$qaExtended" ]; then phpenv config-rm xdebug.ini || :; fi;
5140 - if [ -z "$dependencies" ]; then composer install --prefer-dist; fi;
5241 - if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest --prefer-dist -n; fi;
5342 - if [ "$dependencies" = "highest" ]; then composer update --prefer-dist -n; fi;
5443 - composer show
5544
5645# # Run the actual test
5746script :
58- - if [ "$coverage" = "false " ]; then make ci; fi;
59- - if [ "$coverage " = "true" ]; then make ci-with-coverage ; fi;
47+ - if [ -z "$qaExtended " ]; then make ci; fi;
48+ - if [ "$qaExtended " = "true" ]; then make ci-extended ; fi;
6049
6150# # Gather coverage and set it to coverage servers
62- after_script : make ci-coverage
51+ after_script : if [ "$qaExtended" = "true" ]; then make ci-coverage; fi;
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ all-coverage:
77ci :
88 composer run-script qa-ci --timeout=0
99
10- ci-with-coverage :
11- composer run-script qa-ci-coverage --timeout=0
10+ ci-extended :
11+ composer run-script qa-ci-extended --timeout=0
1212
1313contrib :
1414 composer run-script qa-contrib --timeout=0
1919cs :
2020 composer cs
2121
22+ cs-fix :
23+ composer cs-fix
24+
2225unit :
2326 composer run-script unit --timeout=0
2427
Original file line number Diff line number Diff line change @@ -7,25 +7,15 @@ clone_folder: c:\projects\php-project-workspace
77environment :
88 matrix :
99 - dependencies : lowest
10- php_ver_target : 7.0
11- - dependencies : lowest
12- php_ver_target : 7.1
13- - dependencies : current
14- php_ver_target : 7.0
10+ php_ver_target : 7.2
1511 - dependencies : current
16- php_ver_target : 7.1
17- - dependencies : highest
18- php_ver_target : 7.0
12+ php_ver_target : 7.2
1913 - dependencies : highest
20- php_ver_target : 7.1
14+ php_ver_target : 7.2
2115
22- # # Cache composer, chocolatey and php bits
16+ # # Cache composer file
2317cache :
2418 - ' %LOCALAPPDATA%\Composer\files -> composer.lock'
25- - composer.phar
26- - C:\ProgramData\chocolatey\bin -> .appveyor.yml
27- - C:\ProgramData\chocolatey\lib -> .appveyor.yml
28- - c:\tools\php -> .appveyor.yml
2919
3020# # Set up environment varriables
3121init :
@@ -48,6 +38,7 @@ install:
4838 - IF %PHP%==1 echo @php %%~dp0composer.phar %%* > composer.bat
4939 - appveyor-retry appveyor DownloadFile https://getcomposer.org/composer.phar
5040 - cd c:\projects\php-project-workspace
41+ - composer config --unset platform.php
5142 - IF %dependencies%==lowest appveyor-retry composer update --prefer-lowest --no-progress --profile -n
5243 - IF %dependencies%==current appveyor-retry composer install --no-progress --profile
5344 - IF %dependencies%==highest appveyor-retry composer update --no-progress --profile -n
Original file line number Diff line number Diff line change 99 }
1010 ],
1111 "require" : {
12- "php" : " ^7.0 " ,
12+ "php" : " ^7.2 " ,
1313 "api-clients/middleware" : " ^4.0" ,
1414 "wyrihaximus/ticking-promise" : " ^1.6"
1515 },
1616 "require-dev" : {
17- "api-clients/test-utilities" : " ^3.0.1 "
17+ "api-clients/test-utilities" : " ^5.1.0 "
1818 },
1919 "autoload" : {
2020 "psr-4" : {
2727 }
2828 },
2929 "config" : {
30- "sort-packages" : true
30+ "sort-packages" : true ,
31+ "platform" : {
32+ "php" : " 7.2"
33+ }
3134 },
3235 "scripts" : {
3336 "ensure-installed" : " composer install --ansi -n -q" ,
3437 "cs" : [
3538 " @ensure-installed" ,
36- " phpcs --standard=PSR2 src/"
39+ " php-cs-fixer fix --config=.php_cs --ansi --dry-run --diff --verbose --allow-risky=yes --show-progress=estimating"
40+ ],
41+ "cs-fix" : [
42+ " @ensure-installed" ,
43+ " php-cs-fixer fix --config=.php_cs --ansi --verbose --allow-risky=yes --show-progress=estimating"
3744 ],
3845 "unit" : [
3946 " @ensure-installed" ,
6370 " @unit"
6471 ],
6572 "qa-ci" : [
66- " @qa-all "
73+ " @unit "
6774 ],
68- "qa-ci-coverage " : [
75+ "qa-ci-extended " : [
6976 " @qa-all-coverage"
7077 ],
7178 "qa-ci-windows" : [
You can’t perform that action at this time.
0 commit comments