Travis: Extend our test suite with a memcached instance.
To test persistent object caching Travis CI runs now a build on PHP 5.6 with memached enabled. The build uses the drop-in from https://github.com/tollmanz/wordpress-pecl-memcached-object-cache which is based on the PECL memcached extension. Props pento, ocean90. Fixes #31491. git-svn-id: https://develop.svn.wordpress.org/trunk@35213 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f75321f3ec
commit
159a5b518b
@ -14,6 +14,9 @@ matrix:
|
||||
env: WP_TRAVISCI=travis:phpunit
|
||||
- php: 5.6
|
||||
env: WP_TRAVISCI=travis:phpunit
|
||||
- php: 5.6
|
||||
env: WP_TRAVISCI=travis:phpunit WP_TRAVIS_OBJECT_CACHE=true
|
||||
services: memcached
|
||||
- php: hhvm
|
||||
env: WP_TRAVISCI=travis:phpunit
|
||||
- php: 7.0
|
||||
@ -36,6 +39,11 @@ before_install:
|
||||
sed -i "s/yourpasswordhere//" wp-tests-config.php
|
||||
svn checkout https://plugins.svn.wordpress.org/wordpress-importer/trunk tests/phpunit/data/plugins/wordpress-importer
|
||||
fi
|
||||
- |
|
||||
if [[ "$WP_TRAVIS_OBJECT_CACHE" == "true" ]]; then
|
||||
curl https://raw.githubusercontent.com/tollmanz/wordpress-pecl-memcached-object-cache/master/object-cache.php > src/wp-content/object-cache.php
|
||||
echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
||||
fi
|
||||
before_script:
|
||||
- npm install -g npm
|
||||
- npm install -g grunt-cli
|
||||
|
Loading…
Reference in New Issue
Block a user