Skip to content

Commit 7b9e5b7

Browse files
committed
Revert standardizing Travis config
1 parent dc0113a commit 7b9e5b7

File tree

1 file changed

+19
-13
lines changed

1 file changed

+19
-13
lines changed

.travis.yml

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
os: linux
2-
dist: xenial
1+
sudo: false
2+
dist: trusty
33

44
language: php
5-
php: 7.4
6-
7-
services:
8-
- mysql
5+
php: 7.2
96

107
notifications:
118
email:
@@ -26,6 +23,7 @@ env:
2623
- WP_CLI_BIN_DIR="$TRAVIS_BUILD_DIR/vendor/bin"
2724

2825
before_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

4947
jobs:
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
@@ -69,7 +72,10 @@ jobs:
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

0 commit comments

Comments
 (0)