Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (27 sloc) 1.11 KB
language: php
php:
- 5.3
- 5.4
before_script:
- wget http://pecl.php.net/get/mongo-1.2.10.tgz
- tar -xzf mongo-1.2.10.tgz
- sh -c "cd mongo-1.2.10 && phpize && ./configure --enable-mongo && make && sudo make install"
- echo "extension=mongo.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
- git submodule update --init
- cd ..
- git clone git://github.com/zendframework/ZendSkeletonApplication.git
- cd ZendSkeletonApplication
- rm .gitmodules
- git rm --cached vendor/ZF2
- rm config/application.config.php && cp ../DoctrineMongoODMModule/.travis/application.config.php config/
- cp ../DoctrineMongoODMModule/.travis/composer.json ./
- curl -s http://getcomposer.org/installer | php
- php composer.phar install
- rm -rf vendor/doctrine/doctrine-mongo-odm-module
- cp -r ../DoctrineMongoODMModule vendor/doctrine/
- mv vendor/doctrine/DoctrineMongoODMModule vendor/doctrine/doctrine-mongo-odm-module
script:
- ./vendor/bin/doctrine-module odm:schema:create
- ./vendor/bin/doctrine-module odm:schema:drop
- cd vendor/doctrine/doctrine-mongo-odm-module/tests
- phpunit
Jump to Line
Something went wrong with that request. Please try again.