Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Install memcache by hand

  • Loading branch information...
commit 68324dc7d7e18f8ab9a6f8af39aa9c2b5baaf62c 1 parent bada4b6
@fabian fabian authored
Showing with 7 additions and 1 deletion.
  1. +1 −1  .travis.yml
  2. +6 −0 test/bin/install_php_memcache.sh
View
2  .travis.yml
@@ -1,7 +1,7 @@
language: php
before_script:
- - sudo pecl install memcache
+ - ./test/bin/install_php_memcache.sh
- ./test/bin/run_elasticsearch.sh
script: phpunit -c test/
View
6 test/bin/install_php_memcache.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+wget http://pecl.php.net/get/memcache-2.2.6.tgz
+tar -xzf memcache-2.2.6.tgz
+sh -c "cd memcache-2.2.6 && php `pyrus get php_dir|tail -1`/pake.php install"
+echo "extension=memcache.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
Please sign in to comment.
Something went wrong with that request. Please try again.