-
Notifications
You must be signed in to change notification settings - Fork 158
/
.travis.yml
44 lines (37 loc) · 1.1 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
language: php
sudo: false
php:
- 5.5
- 5.6
env:
- MAGE=magento-1-9-1-0
- MAGE=magento-1-8-1-0
- MAGE=magento-1-7-0-2
- MAGE=magento-1-6-2-0
- MAGE=magento-1-5-1-0
install:
- composer install --dev --prefer-dist --no-scripts
- curl https://gordonlesti.com/"$MAGE".tar.gz | tar xz
- mv $MAGE magento
- cd magento
- wget https://raw.githubusercontent.com/colinmollenhour/modman/master/modman
- chmod +x modman
- ./modman init
- cd ..
before_script:
- mkdir -p build/logs
- mysql -e 'create database `magento`;'
- mysql -utravis magento < magento/var/magento.sql
- mysql -e 'create database `magento_test`;'
- mysql -utravis magento_test < magento/var/magento_test.sql
- cd magento
- ./modman link ./../../Lesti_Fpc
- ./modman clone https://github.com/EcomDev/EcomDev_PHPUnit.git
- cd ..
script:
- php vendor/bin/phpcs --standard=Zend -n app/
- php vendor/bin/phpmd app/ text codesize,design,unusedcode
- php vendor/bin/phpcpd app/
- cd magento && php ../vendor/bin/phpunit --coverage-clover ../build/logs/clover.xml && cd ..
after_script:
- php vendor/bin/coveralls