This repository was archived by the owner on Jul 28, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +556
-22
lines changed
Expand file tree Collapse file tree 6 files changed +556
-22
lines changed Original file line number Diff line number Diff line change 11service_name : travis-ci
2- coverage_clover : temp/coverage.xml
32json_path : temp/coveralls.json
Original file line number Diff line number Diff line change @@ -2,28 +2,26 @@ os: linux
22dist : xenial
33language : php
44
5- php :
6- - 7.2
5+ php : 7.2
76
87git :
98 depth : 1
109
1110before_script :
1211 - composer install
12+
1313jobs :
1414 include :
15- - stage : ParallelLint
16- script : composer phing lint
17- - stage : CodeSniffer
18- script : composer phing phpcs
19- - stage : PHPStan
20- script : composer phing phpstan
21- - stage : Test
22- install :
23- - wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.1.0/php-coveralls.phar
24- script :
25- - composer phing test:coverage
26- - php php-coveralls.phar --verbose --config php/tests/.coveralls.yml
15+ - stage : PHP
16+ - script : composer phing lint
17+ name : " Parallel Lint"
18+ - script : composer phing phpcs
19+ name : " CodeSniffer"
20+ - script : composer phing phpstan
21+ name : " PHPStan"
22+ - script : composer phing test:ci
23+ name : " Tests"
24+
2725cache :
2826 directories :
2927 - $HOME/.composer/cache
Original file line number Diff line number Diff line change 33 <property name =" bin" value =" vendor/bin" />
44 <property name =" codeSnifferExclude" value =" */data/*" />
55 <property name =" codeSnifferRuleset" value =" codesniffer-ruleset.xml" />
6+ <property name =" coverage" value =" ${ temp } /coverage/php" />
7+ <property name =" coverageClover" value =" ${ coverage } /coverage.xml" />
68 <property name =" phpBin" value =" php" />
79 <property name =" src" value =" php/WavevisionCodingStandard" />
810 <property name =" temp" value =" temp" />
98100 </exec >
99101 </target >
100102
103+ <target name =" test:ci" description =" Run tests and publish to Coveralls" depends =" test:coverage" >
104+ <exec
105+ executable =" ${ bin } /php-coveralls"
106+ logoutput =" true"
107+ passthru =" true"
108+ checkreturn =" true"
109+ >
110+ <arg value =" --coverage_clover=${ coverageClover } " />
111+ <arg value =" --verbose" />
112+ </exec >
113+ </target >
114+
101115 <target name =" test:coverage" description =" Run tests with coverage" >
102116 <exec
103117 executable =" ${ bin } /phpunit"
104118 logoutput =" true"
105119 passthru =" true"
106120 checkreturn =" true"
107121 >
108- <arg value =" --coverage-html =${ temp } /coverage " />
109- <arg value =" --coverage-clover =${ temp } /coverage.xml " />
122+ <arg value =" --coverage-clover =${ coverageClover } " />
123+ <arg value =" --coverage-html =${ coverage } /html " />
110124 </exec >
111125 </target >
112-
113-
114126</project >
Original file line number Diff line number Diff line change 3131 "phpunit/phpunit" : " ^8.3" ,
3232 "jakub-onderka/php-parallel-lint" : " ^1.0" ,
3333 "phpstan/phpstan" : " ^0.10" ,
34- "phing/phing" : " ^2.16"
34+ "phing/phing" : " ^2.16" ,
35+ "php-coveralls/php-coveralls" : " ^2.1"
3536 },
3637 "suggest" : {
3738 "phpstan/phpstan" : " PHP Static Analysis Tool - discover bugs in your code without running it!" ,
You can’t perform that action at this time.
0 commit comments