WordPress.org

Make WordPress Core

Changeset 35213


Ignore:
Timestamp:
10/15/2015 10:51:38 PM (6 years ago)
Author:
ocean90
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.travis.yml

    r35208 r35213  
    1515  - php: 5.6
    1616    env: WP_TRAVISCI=travis:phpunit
     17  - php: 5.6
     18    env: WP_TRAVISCI=travis:phpunit WP_TRAVIS_OBJECT_CACHE=true
     19    services: memcached
    1720  - php: hhvm
    1821    env: WP_TRAVISCI=travis:phpunit
     
    3740      svn checkout https://plugins.svn.wordpress.org/wordpress-importer/trunk tests/phpunit/data/plugins/wordpress-importer
    3841  fi
     42- |
     43  if [[ "$WP_TRAVIS_OBJECT_CACHE" == "true" ]]; then
     44    curl https://raw.githubusercontent.com/tollmanz/wordpress-pecl-memcached-object-cache/master/object-cache.php > src/wp-content/object-cache.php
     45    echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
     46  fi
    3947before_script:
    4048- npm install -g npm
Note: See TracChangeset for help on using the changeset viewer.