Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Redis User Session Storage
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WP Plugins
Redis User Session Storage
Commits
b6261ee0
You need to sign in or sign up before continuing.
Commit
b6261ee0
authored
6 years ago
by
Erick Hitter
Browse files
Options
Downloads
Patches
Plain Diff
Installing PECL Redis per
https://serverpilot.io/docs/how-to-install-the-php-redis-extension
parent
e8c6e567
No related branches found
No related tags found
1 merge request
!3
WIP: Add tests
Pipeline
#1167
failed
6 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+7
-0
7 additions, 0 deletions
.gitlab-ci.yml
README.md
+1
-1
1 addition, 1 deletion
README.md
with
8 additions
and
1 deletion
.gitlab-ci.yml
+
7
−
0
View file @
b6261ee0
...
@@ -2,6 +2,7 @@ variables:
...
@@ -2,6 +2,7 @@ variables:
# Configure mysql service (https://hub.docker.com/_/mysql/)
# Configure mysql service (https://hub.docker.com/_/mysql/)
MYSQL_DATABASE
:
wordpress_tests
MYSQL_DATABASE
:
wordpress_tests
MYSQL_ROOT_PASSWORD
:
mysql
MYSQL_ROOT_PASSWORD
:
mysql
PECL_REDIS_VERSION
:
'
redis'
WP_VERSION
:
latest
WP_VERSION
:
latest
cache
:
cache
:
...
@@ -13,6 +14,9 @@ before_script:
...
@@ -13,6 +14,9 @@ before_script:
# Set up WordPress tests
# Set up WordPress tests
-
bash bin/install-wp-tests.sh $MYSQL_DATABASE root $MYSQL_ROOT_PASSWORD mysql $WP_VERSION
true
-
bash bin/install-wp-tests.sh $MYSQL_DATABASE root $MYSQL_ROOT_PASSWORD mysql $WP_VERSION
true
# Install PECL extension we rely on
-
yes '' | pecl install -f $PECL_REDIS_VERSION
# PHPUnit
# PHPUnit
-
|
-
|
if [[ $(php -v) =~ "PHP 7." ]]; then
if [[ $(php -v) =~ "PHP 7." ]]; then
...
@@ -25,6 +29,7 @@ PHPunit:PHP5.3:MySQL:
...
@@ -25,6 +29,7 @@ PHPunit:PHP5.3:MySQL:
stage
:
test
stage
:
test
variables
:
variables
:
WP_VERSION
:
'
5.1'
WP_VERSION
:
'
5.1'
PECL_REDIS_VERSION
:
'
redis-2.2.8'
image
:
containers.ethitter.com:443/docker/images/php:5.3
image
:
containers.ethitter.com:443/docker/images/php:5.3
services
:
services
:
-
mysql:5.6
-
mysql:5.6
...
@@ -35,6 +40,8 @@ PHPunit:PHP5.3:MySQL:
...
@@ -35,6 +40,8 @@ PHPunit:PHP5.3:MySQL:
PHPunit:PHP5.6:MySQL
:
PHPunit:PHP5.6:MySQL
:
stage
:
test
stage
:
test
variables
:
PECL_REDIS_VERSION
:
'
redis-2.2.8'
image
:
containers.ethitter.com:443/docker/images/php:5.6
image
:
containers.ethitter.com:443/docker/images/php:5.6
services
:
services
:
-
mysql:5.6
-
mysql:5.6
...
...
This diff is collapsed.
Click to expand it.
README.md
+
1
−
1
View file @
b6261ee0
...
@@ -16,7 +16,7 @@ Store WordPress user session tokens in Redis rather than the usermeta table.
...
@@ -16,7 +16,7 @@ Store WordPress user session tokens in Redis rather than the usermeta table.
## Installation ##
## Installation ##
1.
Install and configure Redis. There is a good tutorial
[
here
](
http://
www.saltwebsites.com/2012/install-redis-245-service-centos-6
)
.
1.
Install and configure Redis. There is a good tutorial
[
here
](
http
s
://
serverpilot.io/docs/how-to-install-the-php-redis-extension
)
.
2.
Install the
[
Redis PECL module
](
http://pecl.php.net/package/redis
)
.
2.
Install the
[
Redis PECL module
](
http://pecl.php.net/package/redis
)
.
3.
Activate the plugin network-wide or by placing it in
`mu-plugins`
.
3.
Activate the plugin network-wide or by placing it in
`mu-plugins`
.
4.
By default, the script will connect to Redis at 127.0.0.1:6379. See the
*Connecting to Redis*
section for further options.
4.
By default, the script will connect to Redis at 127.0.0.1:6379. See the
*Connecting to Redis*
section for further options.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment