forked from Smile-SA/elasticsuite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
78 lines (70 loc) · 2.44 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
69
70
71
72
73
74
75
76
77
78
sudo: required
dist: trusty
services:
- elasticsearch
addons:
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
- postfix
- oracle-java9-set-default
language: php
jobs:
include:
- php: 7.1
env:
- MAGENTO_VERSION=2.3.0 MAGENTO_EDITION=community
- if: type != pull_request
php: 7.1
env:
- MAGENTO_VERSION=2.3.0 MAGENTO_EDITION=enterprise
- php: 7.1
env:
- MAGENTO_VERSION=2.3.1 MAGENTO_EDITION=community
- if: type != pull_request
php: 7.1
env:
- MAGENTO_VERSION=2.3.1 MAGENTO_EDITION=enterprise
- php: 7.2
env:
- MAGENTO_VERSION=2.3.0 MAGENTO_EDITION=community
- if: type != pull_request
php: 7.2
env:
- MAGENTO_VERSION=2.3.0 MAGENTO_EDITION=enterprise
- php: 7.2
env:
- MAGENTO_VERSION=2.3.1 MAGENTO_EDITION=community
- if: type != pull_request
php: 7.2
env:
- MAGENTO_VERSION=2.3.1 MAGENTO_EDITION=enterprise
before_install:
- sudo service elasticsearch stop
- export ES_HOME=/usr/share/elasticsearch
- curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.4.0.deb
- sudo dpkg -i --force-confnew elasticsearch-6.4.0.deb
- yes | sudo $ES_HOME/bin/elasticsearch-plugin install analysis-icu
- yes | sudo $ES_HOME/bin/elasticsearch-plugin install analysis-phonetic
- sudo service elasticsearch start
- sleep 5
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then composer config -g http-basic.repo.magento.com $MAGENTO_USERNAME $MAGENTO_PASSWORD ; fi
- echo "{\"http-basic\":{\"repo.magento.com\":{\"username\":\"${MAGENTO_USERNAME}\",\"password\":\"${MAGENTO_PASSWORD}\"}}}" > auth.json
- composer global require hirak/prestissimo:0.3.4
- chmod +x ./Resources/travis/*
- ./Resources/travis/prepare_php.sh
- ./Resources/travis/before_install.sh
install:
- composer install --prefer-dist
cache:
directories:
- $HOME/.composer/cache
script:
- ./Resources/travis/test_magento.sh
- vendor/bin/phpcs --config-set installed_paths vendor/magento/marketplace-eqp/
- vendor/bin/phpcs --standard=vendor/magento/marketplace-eqp/MEQP2 --severity=9 src/
- vendor/bin/phpcs --standard=vendor/smile/magento2-smilelab-phpcs/phpcs-standards/SmileLab --extensions=php src/
- vendor/bin/phpmd src text vendor/smile/magento2-smilelab-phpmd/phpmd-rulesets/rulset.xml
- vendor/bin/phpunit -c Resources/tests/unit/phpunit.xml