Permalink
Browse files

build and run tests with travis

  • Loading branch information...
1 parent eabb604 commit 94c8bf32f300e10c609c94ca493529639741778d @till till committed May 8, 2012
Showing with 31 additions and 0 deletions.
  1. +5 −0 .travis.yml
  2. +26 −0 scripts/travis-deps.sh
View
@@ -0,0 +1,5 @@
+language: php
+before_script: ./scripts/travis-deps.sh
+php:
+ - 5.3
+ - 5.4
View
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+MEMCACHE_VERSION=2.2.6
+APC_VERSION=3.1.9
+
+install_composer() {
+ wget http://getcomposer.org/composer.phar && php composer.phar install
+}
+
+install_ext_memcache() {
+ wget "http://pecl.php.net/get/memcache-${MEMCACHE_VERSION}.tgz"
+ tar -xzf "memcache-${MEMCACHE_VERSION}.tgz"
+ sh -c "cd memcache-${MEMCACHE_VERSION} && phpize && ./configure --enable-memcache && make && sudo make install"
+ echo "extension=memcache.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
+}
+
+install_ext_apc() {
+ wget "http://pecl.php.net/get/APC-${APC_VERSION}.tgz"
+ tar -xzf "APC-${APC_VERSION}.tgz"
+ sh -c "cd APC-${APC_VERSION} && phpize && ./configure --enable-apc && make && sudo make install"
+ echo "extension=apc.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
+}
+
+install_composer
+install_ext_memcache
+install_ext_apc

0 comments on commit 94c8bf3

Please sign in to comment.