Browse Source

Added fixture in the before script part

The db fixture in the sphinx configuration for unit test takes place
after starting the sphinxserver on travis, by importing the fixture
in the before scripts we allow sphinxsearch on travis to run create
the indexes properly
tags/2.0.0-beta
Panagiotis Moustafellos 11 years ago
parent
commit
332fdf98ba
  1. 1
      .travis.yml

1
.travis.yml

@ -13,6 +13,7 @@ before_script:
- composer self-update && composer --version
- composer require satooshi/php-coveralls 0.6.* --dev --prefer-dist
- mysql -e 'CREATE DATABASE yiitest;';
- mysql -D yiitest -u travis < /home/travis/build/yiisoft/yii2/tests/unit/data/sphinx/source.sql
- psql -U postgres -c 'CREATE DATABASE yiitest;';
- echo 'elasticsearch version ' && curl http://localhost:9200/
- tests/unit/data/travis/apc-setup.sh

Loading…
Cancel
Save