From 332fdf98ba8e4ac3afa1a4ff6bc2d8a9a82490a5 Mon Sep 17 00:00:00 2001 From: Panagiotis Moustafellos Date: Wed, 27 Nov 2013 23:04:41 +0200 Subject: [PATCH] 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 --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index aadd537..6eeec4c 100644 --- a/.travis.yml +++ b/.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