Skip to content

Commit

Permalink
Add testcase Datasource/MongodbSource
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW committed Jan 28, 2013
1 parent 9dc5f25 commit 51a0636
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .travis.yml
Expand Up @@ -2,16 +2,11 @@ language: php

php:
- 5.3
- 5.4

services:
- mongodb

before_script:
- mkdir -p Plugin/Mongodb
- mv Model Plugin/Mongodb
- mv Test Plugin/Mongodb
- ls Plugin/Mongodb
- mongo cakephp_test --eval 'db.addUser("travis", "test");'
- wget http://pecl.php.net/get/mongo-1.2.9.tgz
- tar xfz mongo-1.2.9.tgz
Expand All @@ -20,11 +15,11 @@ before_script:
- wget https://github.com/cakephp/cakephp/tarball/2.2.5 -O cake.tar.gz
- tar xf cake.tar.gz
- mv cakephp-cakephp-* ./cakephp
- mkdir -p ./cakephp/app/Plugin/Mongodb
- mv Model ./cakephp/app/Plugin/Mongodb
- mv Test ./cakephp/app/Plugin/Mongodb
- chmod -R 777 ./cakephp/app/tmp
- echo "<?php
App::build(array(
'Plugin' => array('/home/travis/build/k1LoW/cakephp-mongodb/Plugin'),
));
CakePlugin::loadAll();
" > cakephp/app/Config/bootstrap.php
- echo "<?php
Expand Down Expand Up @@ -53,4 +48,5 @@ before_script:
- cd ./cakephp

script:
- ./lib/Cake/Console/cake test Mongodb Behavior/SqlCompatible --stderr
- ./lib/Cake/Console/cake test Mongodb Behavior/SqlCompatible --stderr
- ./lib/Cake/Console/cake test Mongodb Datasource/MongodbSource --stderr

0 comments on commit 51a0636

Please sign in to comment.