forked from magento/adobe-stock-integration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
68 lines (68 loc) · 2.76 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
sudo: required
dist: trusty
group: edge
addons:
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
- postfix
firefox: "46.0"
hosts:
- magento2.travis
services:
- rabbitmq
- elasticsearch
language: php
php:
- '7.2'
env:
global:
- COMPOSER_BIN_DIR=~/bin
- NODE_JS_VERSION=8
- MAGENTO_HOST_NAME="magento2.travis"
matrix:
- TEST_SUITE=static
- TEST_SUITE=unit
- TEST_SUITE=integration
# - TEST_SUITE=api
# - TEST_SUITE=functional
matrix:
fast_finish: true
cache:
apt: true
directories:
- $HOME/.composer/cache
- $HOME/.nvm
- $HOME/node_modules
- $HOME/yarn.lock
before_install:
- mkdir -p ext/magento/adobe-stock-integration
- mv !(ext) ext/magento/adobe-stock-integration/
- ./ext/magento/adobe-stock-integration/dev/travis/before_install.sh
install:
- cd magento2
- composer install
- composer config minimum-stability dev
- composer config repositories.ext path "../ext/*/*/*"
- composer require magento/adobe-stock-integration
before_script:
- echo "vendor/magento/module-adobe-stock-*" > dev/tests/static/testsuite/Magento/Test/Php/_files/whitelist/common.txt
- sed -i 's/name="TESTCODESTYLE_IS_FULL_SCAN" value="0"/name="TESTCODESTYLE_IS_FULL_SCAN" value="1"/g' dev/tests/static/phpunit.xml.dist
- cp ../ext/magento/adobe-stock-integration/dev/tests/unit/phpunit.xml dev/tests/unit/phpunit.xml
- cp ../ext/magento/adobe-stock-integration/dev/tests/integration/phpunit.xml dev/tests/integration/phpunit.xml
- cp ../ext/magento/adobe-stock-integration/dev/tests/api/phpunit.xml dev/tests/api-functional/phpunit.xml
- cp ../ext/magento/adobe-stock-integration/dev/tests/acceptance/.env dev/tests/acceptance/.env
- cp -f ../ext/magento/adobe-stock-integration/dev/travis/before_script.sh dev/travis/before_script.sh
- cp dev/tests/integration/etc/install-config-mysql.travis.php.dist dev/tests/integration/etc/install-config-mysql.php
- cp dev/tests/api-functional/config/install-config-mysql.php.dist dev/tests/api-functional/config/install-config-mysql.php
- ./dev/travis/before_script.sh
script:
- if [ $TEST_SUITE == 'static' ]; then phpunit --configuration dev/tests/static/phpunit.xml.dist dev/tests/static/testsuite/Magento/Test/Php/LiveCodeTest.php; fi
- if [ $TEST_SUITE == 'unit' ]; then phpunit --configuration dev/tests/unit/phpunit.xml; fi
- if [ $TEST_SUITE == 'integration' ]; then phpunit -c dev/tests/integration; fi
- if [ $TEST_SUITE == 'api' ]; then phpunit -c dev/tests/api-functional; fi
- if [ $TEST_SUITE == 'functional' ]; then codecept run functional --verbose --steps -g AdobeStockIntegration -c dev/tests/acceptance/codeception.yml; fi
after_success:
- if [ $TEST_SUITE == 'unit' ]; then cd ../ && travis_retry coveralls; fi