Skip to content
This repository
Browse code

Test both master/2.0 branches in Travis CI and allow for multiple dri…

…ver versions
  • Loading branch information...
commit c365ab31d8bd8b7604afa7d8b212bec012363a7a 1 parent 0a69f0b
Jeremy Mikola jmikola authored

Showing 1 changed file with 11 additions and 3 deletions. Show diff stats Hide diff stats

  1. +11 3 .travis.yml
14 .travis.yml
@@ -4,10 +4,18 @@ php:
4 4 - 5.3
5 5 - 5.4
6 6
  7 +branches:
  8 + only:
  9 + - master
  10 + - 2.0
  11 +
  12 +env:
  13 + - MONGO_VERSION=1.2.11
  14 +
7 15 before_script:
8   - - wget http://pecl.php.net/get/mongo-1.2.7.tgz
9   - - tar -xzf mongo-1.2.7.tgz
10   - - sh -c "cd mongo-1.2.7 && phpize && ./configure --enable-mongo && make && sudo make install"
  16 + - wget http://pecl.php.net/get/mongo-${MONGO_VERSION}.tgz
  17 + - tar -xzf mongo-${MONGO_VERSION}.tgz
  18 + - sh -c "cd mongo-${MONGO_VERSION} && phpize && ./configure && make && sudo make install"
11 19 - echo "extension=mongo.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
12 20 - wget -nc http://getcomposer.org/composer.phar
13 21 - php composer.phar install

0 comments on commit c365ab3

Please sign in to comment.
Something went wrong with that request. Please try again.