forked from ctidigital/magento2-configurator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·38 lines (37 loc) · 2.52 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
dist: trusty
language: php
php:
- 7.3
services:
- mysql
- elasticsearch
sudo: required
env:
matrix:
- TEST_SUITE=unit
- TEST_SUITE=phpcs
- TEST_SUITE=configurator
MAGE_VERSION=2.4.1
before_install:
- phpenv config-rm xdebug.ini || true
- composer self-update --1
- echo "{\"http-basic\":{\"repo.magento.com\":{\"username\":\"${MAGENTO_USERNAME}\",\"password\":\"${MAGENTO_PASSWORD}\"}}}" > auth.json
- sh -c "if [ '$TEST_SUITE' = 'phpcs' ]; then composer require magento/framework:^103.0.1; fi"
- sh -c "if [ '$TEST_SUITE' = 'unit' ]; then composer require magento/framework:^103.0.1; fi"
- sh -c "if [ '$TEST_SUITE' = 'unit' ]; then composer require magento/module-catalog; fi"
- sh -c "if [ '$TEST_SUITE' = 'unit' ]; then composer require magento/zendframework1; fi"
install:
- sh -c "if [ '$TEST_SUITE' = 'phpcs' ]; then composer install --prefer-dist; fi"
- sh -c "if [ '$TEST_SUITE' = 'unit' ]; then composer install --prefer-dist; fi"
before_script:
- sh -c "if [ '$TEST_SUITE' = 'configurator' ]; then ./Test/Integration/setup-magento.sh $MAGE_VERSION; fi"
script:
- sh -c "if [ '$TEST_SUITE' = 'phpcs' ]; then php vendor/bin/phpcs --standard=vendor/magento/magento-coding-standard/Magento2/ruleset.xml Model/ Console/ Test/ Component/ Api/ Exception/; fi"
- sh -c "if [ '$TEST_SUITE' = 'phpcs' ]; then php vendor/bin/phpmd Model/,Console/,Test/,Component/,Api/,Exception/ text cleancode,codesize,controversial,design,naming,unusedcode; fi"
- sh -c "if [ '$TEST_SUITE' = 'phpcs' ]; then php vendor/bin/phpcpd Model/ Console/ Test/ Component/ Api/ Exception/; fi"
- sh -c "if [ '$TEST_SUITE' = 'unit' ]; then php vendor/bin/phpunit --coverage-clover build/logs/clover.xml Test/Unit/; fi"
- sh -c "if [ '$TEST_SUITE' = 'configurator' ]; then ./Test/Integration/run-configurator.sh; fi"
notifications:
slack:
rooms:
secure: BWl/riMVP1ANjN0GyVdgBslI+eK5sz7g3s2fQtyyq7SPgWjrz5XpU0a5TcSQWa12wseY1mS09ln0UUMDYvpXucBhIqnB4LMYFHJyeKSbp232L+mQ6INM7xgBkwzsAtdQ8UqFSPWPbpUW+7Ah2DLEo2RSSfbvZIHD4ylEUJ0xDjOUzZicLdUbPSLO1NZV9JfHYHAHnsudRskoPVQ53dSSy3j5i9g9iDMTQAjzDAWRW8fEFWxfnyuggMA4Quwi+jUxOH38L6BsmZfje6K54dfBTcmTHHTxdinbOHiem9jSN/dDxp6EXSLTCxX4+qtd8ix/KRUTXj0BJbamO/HgzgYhSBjTwsJjwvnjCwnhNgsL08e8nxIEOmXrMxddMUJK9Qh8Rt5DzGTxSs2B+GRfuiFTAuwjI166k3wkxDnYrltxmvl4L8icoCsd7rVTNnwWNvPBdKkOB6tE1lGu98hIcGZ1lbPE14+oRFATpnanDiGffFgdxEbyDeQBRc4aqZYgFd2lR5SRRdy1p6ysQAJNDRGp/nIqzctLrrBYeGOcVk0WOpYmzUTVMIWiYrI36l4Hv+OJ+x+Aei7GJfBozVRu+/BPWx3RUNvt67c2flc/OPFhzX75yc+zJUsAy2yWN/qW6wJmzEc/wU2IIFL/EKIQl7dD02pdXXBxk0d9thy1GWK4exk=