forked from baranga/magento-elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (23 loc) · 1.4 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
language: php
env:
- DB=mysql
php:
- 5.3
before_script:
- sudo service elasticsearch start
- wget -O modgit https://raw.github.com/jreinke/modgit/master/modgit
- chmod +x modgit
- sudo mv modgit /usr/local/bin
- modgit init
- modgit clone -t 1.7.0.2 magento https://github.com/jreinke/magento-mirror.git
- wget -O magento-sample-data-1.6.1.0.zip http://www.magentocommerce.com/downloads/assets/1.6.1.0/magento-sample-data-1.6.1.0.zip
- unzip -q magento-sample-data-1.6.1.0.zip
- mysql -e 'CREATE DATABASE IF NOT EXISTS `magento_travis`;'
- mysql -uroot magento_travis < magento-sample-data-1.6.1.0/magento_sample_data_for_1.6.1.0.sql
- php -f install.php -- --license_agreement_accepted yes --locale en_GB --timezone Europe/Paris --default_currency EUR --db_host localhost --db_name magento_travis --db_user root --db_pass "" --url http://travis.magento.local/ --skip_url_validation yes --use_rewrites yes --use_secure no --secure_base_url --use_secure_admin no --admin_firstname Johann --admin_lastname Reinke --admin_email [email protected] --admin_username admin --admin_password magento123
- mysql -D magento_travis -e "INSERT INTO core_config_data (scope, scope_id, path, value) VALUES('default', 0, 'catalog/search/engine', 'bubble_search/engine_elasticsearch');"
- rm -rf var/cache/*
script:
- php shell/indexer.php reindexall
after_script:
- curl localhost:9200/magento/_count?pretty=1