forked from ebizmarts/magento2-mandrill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·25 lines (21 loc) · 1.07 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
dist: trusty
language: php
php:
- 5.5
- 5.6
- 7.0
env:
- TEST_SUITE=unit
- TEST_SUITE=phpcs
before_script:
- sleep 60
script:
- wget https://github.com/magento/magento2/archive/2.0.2.zip
- unzip -qq 2.0.2.zip
- cd magento2-2.0.2/
- wget https://gist.githubusercontent.com/centerax/5e42abec89d62a1308ba/raw/4b3242361c0690e234266afb3520c2940ac1055a/auth.json
- composer require --prefer-source --no-interaction ebizmarts/magento2-mandrill:dev-develop
- sh -c "if [ '$TEST_SUITE' = 'unit' ]; then /bin/cp ../phpunit_config.xml dev/tests/unit/ && ./vendor/bin/phpunit -c dev/tests/unit/phpunit_config.xml --coverage-text; fi"
- sh -c "if [ '$TEST_SUITE' = 'phpcs' ]; then composer require --prefer-source --no-interaction "squizlabs/php_codesniffer=*" magento-ecg/coding-standard && vendor/squizlabs/php_codesniffer/scripts/phpcs --config-set installed_paths vendor/magento-ecg/coding-standard && ./vendor/squizlabs/php_codesniffer/scripts/phpcs -n --standard="EcgM2" ./vendor/ebizmarts/magento2-mandrill/; fi"
notifications:
slack: ebizmarts:DqCqxnqWzW55zoFU069hxs1T