-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
67 lines (62 loc) · 2.32 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
sudo: false
dist: xenial
language: php
services:
- mysql
php:
- 5.6
env:
- MAGENTO_VERSION="1.7.0.2"
- MAGENTO_VERSION="1.8.1.0"
- MAGENTO_VERSION="1.9.2.4"
matrix:
fast_finish: true
exclude:
# Old Magento Versions are not officially supported to run with PHP 5.5+
- php: 5.5
env: MAGENTO_VERSION="1.7.0.2"
- php: 5.6
env: MAGENTO_VERSION="1.7.0.2"
install:
- composer require firegento/magento ~$MAGENTO_VERSION
- cp phpunit.xml ./vendor/firegento/magento
- cd ./vendor/firegento/magento
- cp ./app/etc/local.xml.template ./app/etc/local.xml
- sed -i -e 's/{{date}}/Thu, 14 Jul 2016 10:03:10 +0000/g' ./app/etc/local.xml
- sed -i -e 's/{{key}}/8532ecf375979bf5658401d2b7ca2040/g' ./app/etc/local.xml
- sed -i -e 's/{{db_prefix}}//g' ./app/etc/local.xml
- sed -i -e 's/{{db_host}}/localhost/g' ./app/etc/local.xml
- sed -i -e 's/{{db_user}}/travis/g' ./app/etc/local.xml
- sed -i -e 's/{{db_pass}}//g' ./app/etc/local.xml
- sed -i -e 's/{{db_name}}/magento_test/g' ./app/etc/local.xml
- sed -i -e 's/{{db_init_statemants}}/SET NAMES utf8/g' ./app/etc/local.xml
- sed -i -e 's/{{db_model}}/mysql4/g' ./app/etc/local.xml
- sed -i -e 's/{{db_pdo_type}}//g' ./app/etc/local.xml
- sed -i -e 's/{{db_type}}/pdo_mysql/g' ./app/etc/local.xml
- sed -i -e 's/{{session_save}}/files/g' ./app/etc/local.xml
- sed -i -e 's/{{admin_frontname}}/admin/g' ./app/etc/local.xml
- wget https://raw.githubusercontent.com/colinmollenhour/modman/master/modman
- chmod +x ./modman
- ./modman init
- ./modman clone https://github.com/EcomDev/EcomDev_PHPUnit.git
- sed -i -e 's/<allow_same_db>0/<allow_same_db>1/g' ./app/etc/local.xml.phpunit
- ./modman link $(readlink -f ./../../../)
- wget --no-check-certificate https://files.magerun.net/n98-magerun.phar
- chmod +x ./n98-magerun.phar
- wget http://magento7.aait.nu/magento_test.sql
- mysql -e 'create database `magento_test`;'
- mysql -utravis -Dmagento_test < ./magento_test.sql
- ./n98-magerun.phar sys:setup:run
- ./n98-magerun.phar cache:clean
- ./n98-magerun.phar index:reindex:all
- cd shell
- php ./ecomdev-phpunit.php -a magento-config --db-name travis --base-url http://magetest7.local/
- cd ..
script:
- phpunit
notifications:
email:
recipients:
- ottofromhell@gmail.com
on_success: never
on_failure: always