forked from doctrine/DoctrineMongoODMModule
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (27 loc) · 1.11 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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