Skip to content

Commit f4be4d3

Browse files
author
John Spellman
authored
[CMSP-79] Release 1.3.2 (#233)
1 parent e2a753f commit f4be4d3

16 files changed

+1194
-884
lines changed

.circleci/config.yml

+84-45
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ workflows:
55
jobs:
66
- lint
77
- test-behat
8-
- test-phpunit
8+
- test-phpunit-74
9+
- test-phpunit-82
910
nightly:
1011
triggers:
1112
- schedule:
@@ -20,7 +21,7 @@ jobs:
2021
lint:
2122
working_directory: ~/pantheon-systems/wp-native-php-sessions
2223
docker:
23-
- image: quay.io/pantheon-public/build-tools-ci:6.x
24+
- image: quay.io/pantheon-public/build-tools-ci:8.x-php8.2
2425
steps:
2526
- checkout
2627
- restore_cache:
@@ -39,48 +40,48 @@ jobs:
3940
working_directory: ~/pantheon-systems/wp-native-php-sessions
4041
parallelism: 1
4142
docker:
42-
- image: quay.io/pantheon-public/build-tools-ci:6.x
43+
- image: quay.io/pantheon-public/build-tools-ci:8.x-php8.2
4344
steps:
44-
- checkout
45-
- restore_cache:
46-
keys:
47-
- test-behat-dependencies-{{ checksum "composer.json" }}
48-
- run: composer install -n --prefer-dist
49-
- save_cache:
50-
key: test-behat-dependencies-{{ checksum "composer.json" }}
51-
paths:
52-
- vendor
53-
- run: echo $(openssl rand -hex 8) > /tmp/WORDPRESS_ADMIN_PASSWORD
54-
- run: |
55-
echo 'export TERMINUS_ENV=ci-$CIRCLE_BUILD_NUM' >> $BASH_ENV
56-
echo 'export TERMINUS_SITE=wp-native-php-sessions' >> $BASH_ENV
57-
echo 'export SITE_ENV=wp-native-php-sessions.ci-$CIRCLE_BUILD_NUM' >> $BASH_ENV
58-
echo 'export WORDPRESS_ADMIN_USERNAME=pantheon' >> $BASH_ENV
59-
echo 'export [email protected]' >> $BASH_ENV
60-
echo 'export WORDPRESS_ADMIN_PASSWORD=$(cat /tmp/WORDPRESS_ADMIN_PASSWORD)' >> $BASH_ENV
61-
source $BASH_ENV
62-
- run: echo "StrictHostKeyChecking no" >> "$HOME/.ssh/config"
63-
- run: |
64-
if [ -z "$GITHUB_TOKEN" ]; then
65-
echo "GITHUB_TOKEN environment variables missing; assuming unauthenticated build"
66-
exit 0
67-
fi
68-
echo "Setting GitHub OAuth token with suppressed ouput"
69-
{
70-
composer config -g github-oauth.github.com $GITHUB_TOKEN
71-
} &> /dev/null
72-
- run: |
73-
if [ -z "$TERMINUS_TOKEN" ]; then
74-
echo "TERMINUS_TOKEN environment variables missing; assuming unauthenticated build"
75-
exit 0
76-
fi
77-
terminus auth:login --machine-token=$TERMINUS_TOKEN
78-
- run: ./bin/behat-prepare.sh
79-
- run: ./bin/behat-test.sh --strict
80-
- run:
81-
command: ./bin/behat-cleanup.sh
82-
when: always
83-
test-phpunit:
45+
- checkout
46+
- restore_cache:
47+
keys:
48+
- test-behat-dependencies-{{ checksum "composer.json" }}
49+
- run: composer install -n --prefer-dist
50+
- save_cache:
51+
key: test-behat-dependencies-{{ checksum "composer.json" }}
52+
paths:
53+
- vendor
54+
- run: echo $(openssl rand -hex 8) > /tmp/WORDPRESS_ADMIN_PASSWORD
55+
- run: |
56+
echo 'export TERMINUS_ENV=ci-$CIRCLE_BUILD_NUM' >> $BASH_ENV
57+
echo 'export TERMINUS_SITE=wp-native-php-sessions' >> $BASH_ENV
58+
echo 'export SITE_ENV=wp-native-php-sessions.ci-$CIRCLE_BUILD_NUM' >> $BASH_ENV
59+
echo 'export WORDPRESS_ADMIN_USERNAME=pantheon' >> $BASH_ENV
60+
echo 'export [email protected]' >> $BASH_ENV
61+
echo 'export WORDPRESS_ADMIN_PASSWORD=$(cat /tmp/WORDPRESS_ADMIN_PASSWORD)' >> $BASH_ENV
62+
source $BASH_ENV
63+
- run: echo "StrictHostKeyChecking no" >> "$HOME/.ssh/config"
64+
- run: |
65+
if [ -z "$GITHUB_TOKEN" ]; then
66+
echo "GITHUB_TOKEN environment variables missing; assuming unauthenticated build"
67+
exit 0
68+
fi
69+
echo "Setting GitHub OAuth token with suppressed ouput"
70+
{
71+
composer config -g github-oauth.github.com $GITHUB_TOKEN
72+
} &> /dev/null
73+
- run: |
74+
if [ -z "$TERMINUS_TOKEN" ]; then
75+
echo "TERMINUS_TOKEN environment variables missing; assuming unauthenticated build"
76+
exit 0
77+
fi
78+
terminus auth:login --machine-token=$TERMINUS_TOKEN
79+
- run: ./bin/behat-prepare.sh
80+
- run: ./bin/behat-test.sh --strict
81+
- run:
82+
command: ./bin/behat-cleanup.sh
83+
when: always
84+
test-phpunit-74:
8485
working_directory: ~/pantheon-systems/wp-native-php-sessions
8586
docker:
8687
- image: circleci/php:7.4-node-browsers
@@ -92,10 +93,10 @@ jobs:
9293
- checkout
9394
- restore_cache:
9495
keys:
95-
- test-phpunit-dependencies-{{ checksum "composer.json" }}
96+
- test-phpunit-74-dependencies-{{ checksum "composer.json" }}
9697
- run: composer install -n --prefer-dist
9798
- save_cache:
98-
key: test-phpunit-dependencies-{{ checksum "composer.json" }}
99+
key: test-phpunit-74-dependencies-{{ checksum "composer.json" }}
99100
paths:
100101
- vendor
101102
- run:
@@ -118,3 +119,41 @@ jobs:
118119
rm -rf $WP_TESTS_DIR $WP_CORE_DIR
119120
bash bin/install-wp-tests.sh wordpress_test root '' 127.0.0.1 nightly true
120121
composer phpunit
122+
test-phpunit-82:
123+
working_directory: ~/pantheon-systems/wp-native-php-sessions
124+
docker:
125+
- image: cimg/php:8.2.0
126+
- image: circleci/mariadb:10.3
127+
environment:
128+
- WP_TESTS_DIR: "/tmp/wordpress-tests-lib"
129+
- WP_CORE_DIR: "/tmp/wordpress/"
130+
steps:
131+
- checkout
132+
- restore_cache:
133+
keys:
134+
- test-phpunit-82-dependencies-{{ checksum "composer.json" }}
135+
- run: composer install -n --prefer-dist
136+
- save_cache:
137+
key: test-phpunit-82-dependencies-{{ checksum "composer.json" }}
138+
paths:
139+
- vendor
140+
- run:
141+
name: "Install Extras"
142+
command: |
143+
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EB27DB2A3B88B8B
144+
sudo apt-get update
145+
sudo apt-get install subversion
146+
sudo apt-get install -y libmagickwand-dev --no-install-recommends
147+
yes '' | sudo pecl install imagick || true
148+
sudo docker-php-ext-enable imagick
149+
sudo docker-php-ext-install mysqli
150+
sudo apt-get install mariadb-client-10.6
151+
- run:
152+
name: "Run Tests"
153+
command: |
154+
bash bin/install-wp-tests.sh wordpress_test root '' 127.0.0.1 latest
155+
composer phpunit
156+
WP_MULTISITE=1 composer phpunit
157+
rm -rf $WP_TESTS_DIR $WP_CORE_DIR
158+
bash bin/install-wp-tests.sh wordpress_test root '' 127.0.0.1 nightly true
159+
composer phpunit

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
**Tags:** comments, sessions
44
**Requires at least:** 4.7
55
**Tested up to:** 6.1
6-
**Stable tag:** 1.3.1
6+
**Stable tag:** 1.3.2
77
**Requires PHP:** 5.4
88
**License:** GPLv2 or later
99
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html
@@ -71,6 +71,11 @@ This mu-plugin will load WP Native PHP Sessions before all other plugins, while
7171

7272
## Changelog ##
7373

74+
### 1.3.2 (January 25, 2023) ###
75+
* PHP 8.2 compatibility [[#232](https://github.com/pantheon-systems/wp-native-php-sessions/pull/232)].
76+
* Bump dealerdirect/phpcodesniffer-composer-installer from 0.7.2 to 1.0.0 [[#229](https://github.com/pantheon-systems/wp-native-php-sessions/pull/229)].
77+
* Update images for lint and test-behat jobs [[#228](https://github.com/pantheon-systems/wp-native-php-sessions/pull/228)].
78+
7479
### 1.3.1 (December 5, 2022) ###
7580
* Document session lifetime handling [[#224](https://github.com/pantheon-systems/wp-native-php-sessions/pull/224)].
7681
* Make dependabot target develop branch [[#226](https://github.com/pantheon-systems/wp-native-php-sessions/pull/226)].

composer.json

+3-6
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,10 @@
1414
}
1515
],
1616
"require-dev": {
17-
"behat/behat": "^3.1",
18-
"behat/mink-extension": "^2.2",
19-
"behat/mink-goutte-driver": "^1.2",
2017
"pantheon-systems/pantheon-wordpress-upstream-tests": "dev-master",
21-
"wp-coding-standards/wpcs": "^2",
22-
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
23-
"phpunit/phpunit": "^7",
18+
"wp-coding-standards/wpcs": "dev-develop as 2.3.1",
19+
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
20+
"phpunit/phpunit": "^9",
2421
"phpcompatibility/php-compatibility": "^9.3",
2522
"yoast/phpunit-polyfills": "^1.0"
2623
},

0 commit comments

Comments
 (0)