Skip to content
This repository has been archived by the owner on Nov 12, 2021. It is now read-only.

Commit

Permalink
build and run tests with travis
Browse files Browse the repository at this point in the history
  • Loading branch information
till committed May 8, 2012
1 parent eabb604 commit 94c8bf3
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: php
before_script: ./scripts/travis-deps.sh
php:
- 5.3
- 5.4
26 changes: 26 additions & 0 deletions scripts/travis-deps.sh
Original file line number Diff line number Diff line change
@@ -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.