forked from magento-hackathon/m2-content-provisioning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (36 loc) · 1.05 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
addons:
apt:
sources:
- mysql-5.7-trusty
packages:
- mysql-server
- mysql-client
- rabbitmq-server
services:
- mysql
- rabbitmq
- elasticsearch
language: php
php:
- 7.3
- 7.4
env:
matrix:
- MAGENTO_VERSION=2.3
- MAGENTO_VERSION=2.4
matrix:
exclude:
- php: 7.4
env: MAGENTO_VERSION=2.3
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 $(pwd)/install-config-mysql.travis.$MAGENTO_VERSION.php /tmp/magento/dev/tests/integration/etc/install-config-mysql.php
- mkdir -p /tmp/magento/app/code/Firegento
- cp -R $(pwd) /tmp/magento/app/code/Firegento/ContentProvisioning
install:
- cd /tmp/magento
- composer install --no-interaction
- composer require --dev mikey179/vfsstream
script:
- php /tmp/magento/vendor/bin/phpunit -c /tmp/magento/app/code/Firegento/ContentProvisioning/Test/Integration/phpunit.travis.xml