-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
26 lines (22 loc) · 993 Bytes
/
.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
language: php
php:
- 5.4
- 5.5
- 5.6
matrix:
allow_failures:
- php: 5.6
- php: hhvm
before_script:
- composer self-update --no-interaction
- composer install --no-interaction
- php vendor/bin/phpcs --config-set ignore_warnings_on_exit 1
- sed -i 's/curl/banan/g' vendor/magento-ecg/coding-standard/Ecg/Sniffs/Security/ForbiddenFunctionSniff.php
- sed -i 's/pathinfo/ananas/g' vendor/magento-ecg/coding-standard/Ecg/Sniffs/Security/ForbiddenFunctionSniff.php
- sed -i 's/tempnam/cocos/g' vendor/magento-ecg/coding-standard/Ecg/Sniffs/Security/ForbiddenFunctionSniff.php
script:
- php vendor/bin/parallel-lint --exclude vendor .
- php vendor/bin/phpcs --standard=vendor/magento-ecg/coding-standard/Ecg,vendor/mygento/coding-standard/Mygento-Mage1 --ignore=lib .
- php vendor/bin/phpcpd --exclude=vendor .
- php vendor/bin/phpdcd --exclude=vendor .
- php vendor/bin/phpmd . text vendor/mygento/coding-standard/Mygento-Mage1/phpmd.xml --exclude vendor,lib