Skip to content

Commit

Permalink
Adding a redis ext installer + code coverage to Travis CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
justinrainbow committed Jul 27, 2012
1 parent 1858f7b commit e72661e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ php:
- 5.4

before_script:
- wget --quiet http://getcomposer.org/composer.phar
- php composer.phar install --dev
- cp phpunit.xml.dist phpunit.xml
- ./tests/redis-installer.sh
- composer install --dev

script: phpunit
script: phpunit -c phpunit.xml.dist --coverage-text
5 changes: 5 additions & 0 deletions tests/redis-installer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

git clone git://github.com/nicolasff/phpredis.git
sh -c "cd phpredis && phpize && phpize && ./configure && sudo make install"
echo "extension=redis.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`

0 comments on commit e72661e

Please sign in to comment.