Browse Source

fixed travis mongodb

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
4d1390ceb1
  1. 6
      .travis.yml
  2. 11
      tests/unit/data/travis/mongodb-setup.sh

6
.travis.yml

@ -15,17 +15,15 @@ install:
- composer self-update && composer --version
# - composer require satooshi/php-coveralls 0.6.* --dev --prefer-dist
- echo 'elasticsearch version ' && curl http://localhost:9200/
- tests/unit/data/travis/mongodb-setup.sh
- tests/unit/data/travis/apc-setup.sh
- tests/unit/data/travis/memcache-setup.sh
- tests/unit/data/travis/cubrid-setup.sh
- tests/unit/data/travis/sphinx-setup.sh
- echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- sudo 'echo "textSearchEnabled=true" >> /etc/mongodb.conf'
- sudo service restart mongodb
before_script:
- mysql -e 'CREATE DATABASE yiitest;';
- psql -U postgres -c 'CREATE DATABASE yiitest;';
- tests/unit/data/travis/sphinx-setup.sh
- mongo yii2test --eval 'db.addUser("travis", "test");'
script:

11
tests/unit/data/travis/mongodb-setup.sh

@ -0,0 +1,11 @@
#!/bin/sh
#
# install mongodb
echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
sudo sh -c 'echo "setParameter = textSearchEnabled=true" >> /etc/mongodb.conf'
cat /etc/mongodb.conf
mongod --version
sudo service mongodb restart
Loading…
Cancel
Save