Skip to content

Commit 572f9d7

Browse files
author
Ian Jenkins
committed
Build against newer versions of PHP.
1 parent 5a16ba9 commit 572f9d7

File tree

4 files changed

+30
-9
lines changed

4 files changed

+30
-9
lines changed

.travis.yml

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
language: php
22

3+
dist: focal
4+
5+
php: 7.4
6+
37
branches:
48
only:
59
- master
@@ -29,16 +33,20 @@ script:
2933
- composer behat || composer behat-rerun
3034

3135
jobs:
36+
allow_failures:
37+
- php: 8.1.2
3238
include:
3339
- stage: lint
3440
script:
3541
- composer lint
3642
- composer phpcs
3743
env: BUILD=lint
38-
- stage: test
39-
php: 5.6
40-
env:
41-
- WP_VERSION=latest
4244
- stage: test
4345
php: 7.4
4446
env: WP_VERSION=latest
47+
- stage: test
48+
php: 8.0
49+
env: WP_VERSION=latest
50+
- stage: test
51+
php: 8.1.2
52+
env: WP_VERSION=latest

CONTRIBUTING.md

+8
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ Then you'll need to export the following vars (update the values accordingly):
4242

4343
`export WP_CLI_TEST_DBHOST=localhost`
4444

45+
Then you'll need to prepare the tests:
46+
47+
`composer prepare-tests`
48+
49+
Then run the tests with:
50+
51+
`composer behat`
52+
4553
Finally...
4654
----------
4755

composer.json

+5
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,10 @@
4242
"@phpunit",
4343
"@behat"
4444
]
45+
},
46+
"config": {
47+
"allow-plugins": {
48+
"dealerdirect/phpcodesniffer-composer-installer": true
49+
}
4550
}
4651
}

features/network-sites.feature

+5-5
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ Feature: Network Sites Region
9494
When I run `wp site list --field=url`
9595
Then STDOUT should be:
9696
"""
97-
http://example.com/
98-
http://example.com/enolagay/
97+
https://example.com/
98+
https://example.com/enolagay/
9999
"""
100100

101101
When I run `wp --url=example.com option get blogname`
@@ -143,7 +143,7 @@ Feature: Network Sites Region
143143
When I run `wp site list --field=url`
144144
Then STDOUT should be:
145145
"""
146-
http://example.com/
146+
https://example.com/
147147
http://sub.example.com/
148148
"""
149149

@@ -179,6 +179,6 @@ Feature: Network Sites Region
179179
When I run `wp site list --field=url`
180180
Then STDOUT should be:
181181
"""
182-
http://example.com/
183-
http://enolagay.dev/
182+
https://example.com/
183+
https://enolagay.dev/
184184
"""

0 commit comments

Comments
 (0)