File tree Expand file tree Collapse file tree 1 file changed +19
-13
lines changed
Expand file tree Collapse file tree 1 file changed +19
-13
lines changed Original file line number Diff line number Diff line change 1- os : linux
2- dist : xenial
1+ sudo : false
2+ dist : trusty
33
44language : php
5- php : 7.4
6-
7- services :
8- - mysql
5+ php : 7.2
96
107notifications :
118 email :
2623 - WP_CLI_BIN_DIR="$TRAVIS_BUILD_DIR/vendor/bin"
2724
2825before_install :
26+ - export XMLLINT_INDENT=" "
2927 - |
3028 # Remove Xdebug for a huge performance increase:
3129 if [ -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]; then
@@ -48,12 +46,17 @@ script:
4846
4947jobs :
5048 include :
51- - stage : test
52- php : 7.4
53- env : WP_VERSION=latest
54- - stage : test
55- php : 7.3
56- env : WP_VERSION=latest
49+ - stage : sniff
50+ addons :
51+ apt :
52+ packages :
53+ - libxml2-utils
54+ script :
55+ - composer lint
56+ - xmllint --noout --schema ./vendor/squizlabs/php_codesniffer/phpcs.xsd ./*/ruleset.xml
57+ - composer phpcs
58+ - diff -B --tabsize=4 ./WP_CLI_CS/ruleset.xml <(xmllint --format "./WP_CLI_CS/ruleset.xml")
59+ env : BUILD=sniff
5760 - stage : test
5861 php : 7.2
5962 env : WP_VERSION=latest
6972 - stage : test
7073 php : 5.6
7174 env : WP_VERSION=3.7.11
72- dist : trusty
7375 - stage : test
7476 php : 5.6
7577 env : WP_VERSION=trunk
78+ - stage : test
79+ php : 5.4
80+ dist : precise
81+ env : WP_VERSION=5.1
You can’t perform that action at this time.
0 commit comments