From 159a5b518b6fdbfc4f64b107a39a20bdd94852a6 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Thu, 15 Oct 2015 22:51:38 +0000 Subject: [PATCH] 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 --- .travis.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index ec4faf62b5..fa8998cec1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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