forked from Smile-SA/elasticsuite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
23 lines (19 loc) · 840 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
language: php
php:
- '7.0'
- '7.1'
install: [
"mkdir -p app/etc var",
"echo \"{\\\"http-basic\\\":{\\\"repo.magento.com\\\":{\\\"username\\\":\\\"${MAGENTO_USERNAME}\\\",\\\"password\\\":\\\"${MAGENTO_PASSWORD}\\\"}}}\" > auth.json",
"composer require magento/magento2-base --no-update",
"composer install --prefer-dist"
]
cache:
directories:
- $HOME/.composer/cache
script:
- vendor/bin/phpcs --config-set installed_paths vendor/magento/marketplace-eqp/
- vendor/bin/phpcs --standard=vendor/magento/marketplace-eqp/MEQP2 --severity=9 src/
- vendor/bin/phpcs --standard=vendor/smile/magento2-smilelab-phpcs/phpcs-standards/SmileLab --extensions=php src/
- vendor/bin/phpmd src text vendor/smile/magento2-smilelab-phpmd/phpmd-rulesets/rulset.xml
- vendor/bin/phpunit -c Resources/tests/unit/phpunit.xml