File tree Expand file tree Collapse file tree 6 files changed +32
-7
lines changed Expand file tree Collapse file tree 6 files changed +32
-7
lines changed Original file line number Diff line number Diff line change 1+ /tools export-ignore
2+
13* .php diff =php
Original file line number Diff line number Diff line change 2222 - DEFAULT_COMPOSER_FLAGS="--no-interaction --no-ansi --no-progress --no-suggest"
2323
2424before_install :
25- - composer self-update
26- - composer clear-cache
25+ - ./tools/composer clear-cache
2726
2827install :
29- - if [[ "$DEPENDENCIES" = 'high' ]]; then travis_retry composer update $DEFAULT_COMPOSER_FLAGS; fi
30- - if [[ "$DEPENDENCIES" = 'low' ]]; then travis_retry composer update $DEFAULT_COMPOSER_FLAGS --prefer-lowest; fi
28+ - if [[ "$DEPENDENCIES" = 'high' ]]; then travis_retry ./tools/ composer update $DEFAULT_COMPOSER_FLAGS; fi
29+ - if [[ "$DEPENDENCIES" = 'low' ]]; then travis_retry ./tools/ composer update $DEFAULT_COMPOSER_FLAGS --prefer-lowest; fi
3130
3231before_script :
3332 - |
@@ -53,3 +52,12 @@ after_success:
5352notifications :
5453 email : false
5554
55+ jobs :
56+ include :
57+ - stage : Static Code Analysis
58+ php : 7.3
59+ env : php-cs-fixer
60+ install :
61+ - phpenv config-rm xdebug.ini
62+ script :
63+ - ./tools/php-cs-fixer fix --dry-run -v --show-progress=dots --diff-format=udiff
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<project name =" php-code-coverage" default =" setup" >
3- <target name =" setup" depends =" clean,composer " />
3+ <target name =" setup" depends =" clean,install-dependencies " />
44
55 <target name =" clean" description =" Cleanup build artifacts" >
66 <delete dir =" ${ basedir } /vendor" />
77 <delete file =" ${ basedir } /composer.lock" />
88 </target >
99
10- <target name =" composer " depends =" clean" description =" Install dependencies with Composer" >
11- <exec executable =" composer" taskname =" composer" >
10+ <target name =" install-dependencies " depends =" clean" description =" Install dependencies with Composer" >
11+ <exec executable =" ${ basedir } /tools/ composer" taskname =" composer" >
1212 <arg value =" update" />
1313 <arg value =" --no-interaction" />
1414 <arg value =" --no-progress" />
1515 <arg value =" --no-ansi" />
1616 <arg value =" --no-suggest" />
1717 </exec >
1818 </target >
19+
20+ <target name =" update-tools" >
21+ <exec executable =" phive" >
22+ <arg value =" --no-progress" />
23+ <arg value =" update" />
24+ </exec >
25+
26+ <exec executable =" ${ basedir } /tools/composer" >
27+ <arg value =" self-update" />
28+ </exec >
29+ </target >
1930</project >
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <phive xmlns =" https://phar.io/phive" >
3+ <phar name =" php-cs-fixer" version =" ^2.14" installed =" 2.14.2" location =" ./tools/php-cs-fixer" copy =" true" />
4+ </phive >
You can’t perform that action at this time.
0 commit comments