forked from magento/adobe-stock-integration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
64 lines (64 loc) · 1.39 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
branches:
only:
- 1.0-develop
- 1.1-develop
- staging
sudo: required
dist: trusty
group: edge
addons:
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
- postfix
chrome: stable
hosts:
- magento2.travis
services:
- rabbitmq
- elasticsearch
- mysql
language: php
php:
- '7.2'
- '7.3'
env:
global:
- MAGENTO_HOST_NAME="magento2.travis"
- MAGENTO_PROTOCOL="https"
- MAGENTO_BACKEND="backend"
- MAGENTO_ADMIN_USERNAME="admin"
- MAGENTO_ADMIN_PASSWORD="123123q"
- ADOBE_STOCK_LICENSED_IMAGE="175947395"
- ADOBE_STOCK_UNLICENSED_IMAGE="24860368"
matrix:
- TEST_SUITE=unit
- TEST_SUITE=phpstan
- TEST_SUITE=static
matrix:
fast_finish: true
cache:
directories:
- $HOME/.composer/cache
# cache location of webdrivers for MFTF (chromedriver, geckdriver, etc)
- $HOME/drivers
before_install:
- bash -x dev/travis/before_install.sh
install:
- mkdir -p magento2/app/code/Magento
- mv Adobe* magento2/app/code/Magento/.
- mv Media* magento2/app/code/Magento/.
- pushd magento2
- composer install
- composer require astock/stock-api-libphp
- popd
before_script:
- bash -x dev/travis/before_script.sh
script:
- bash -x dev/travis/script.sh
after_success:
- if [ $TEST_SUITE == 'unit' ]; then travis_retry coveralls; fi
after_script:
- bash -x dev/travis/after_script.sh