forked from techdivision/pagedesigner-content-provisioning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (39 loc) · 1.36 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
addons:
apt:
sources:
- mysql-5.7-trusty
packages:
- mysql-server
- mysql-client
- rabbitmq-server
services:
- mysql
- rabbitmq
- elasticsearch
language: php
php:
- 7.1
- 7.2
env:
matrix:
- MAGENTO_VERSION=2.2 PAGEDESIGNER_VERSION=3.2
- MAGENTO_VERSION=2.3 PAGEDESIGNER_VERSION=4.0
- MAGENTO_VERSION=2.3-develop PAGEDESIGNER_VERSION=4.0
matrix:
exclude:
- php: 7.2
env: MAGENTO_VERSION=2.2 PAGEDESIGNER_VERSION=3.2
before_install:
- git clone --depth=50 --branch=$MAGENTO_VERSION https://github.com/magento/magento2.git /tmp/magento
- mysql -uroot -e 'SET @@global.sql_mode = NO_ENGINE_SUBSTITUTION; CREATE DATABASE magento_integration_tests;'
- mv /tmp/magento/dev/tests/integration/etc/install-config-mysql.travis.php.dist /tmp/magento/dev/tests/integration/etc/install-config-mysql.php
- mkdir -p /tmp/magento/app/code/TechDivision
- cp -R $(pwd) /tmp/magento/app/code/TechDivision/PageDesignerContentProvisioning
install:
- cd /tmp/magento
- composer install --no-interaction
- composer require firegento/magento2-content-provisioning
- composer require magenerds/pagedesigner "^$PAGEDESIGNER_VERSION"
- composer require --dev mikey179/vfsstream
script:
- php /tmp/magento/vendor/bin/phpunit -c /tmp/magento/app/code/TechDivision/PageDesignerContentProvisioning/Test/Integration/phpunit.travis.xml