-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
executable file
·62 lines (62 loc) · 1.62 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
os: linux
dist: xenial
group: edge
services:
- mysql
addons:
apt:
packages:
- postfix
hosts:
- magento2.travis
language: php
jobs:
include:
- php: 7.2
env:
- MAGENTO_VERSION=2.3
- TEST_SUITE=integration
- php: 7.3
env:
- MAGENTO_VERSION=2.3
- TEST_SUITE=integration
- php: 7.4
env:
- MAGENTO_VERSION=2.4
- TEST_SUITE=integration
- COVERAGE=true
- php: 7.4
env:
- MAGENTO_VERSION=2.4-develop
- TEST_SUITE=integration
allow_failures:
- php: 7.4
env:
- MAGENTO_VERSION=2.4-develop
- TEST_SUITE=integration
env:
global:
- COMPOSER_BIN_DIR=~/bin
- COMPOSER_PACKAGE_NAME=integer-net/magento2-global-custom-layout
cache:
apt: true
directories:
- $HOME/.composer/cache
before_install:
- |
[[ $TEST_SUITE == "unit" ]] || (
curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.6.2-amd64.deb
sudo dpkg -i --force-confnew elasticsearch-7.6.2-amd64.deb
sudo chown -R elasticsearch:elasticsearch /etc/default/elasticsearch
sudo service elasticsearch restart
)
before_script:
- |
sleep 10
[[ $COVERAGE == "true" ]] || phpenv config-rm xdebug.ini
./.travis/before_script.sh
script: phpunit -c magento2/dev/tests/$TEST_SUITE `[[ $COVERAGE == "true" ]] && echo "--coverage-text --coverage-clover=/tmp/coverage.clover"`
after_script:
- |
[[ $COVERAGE == "true" ]] && wget https://scrutinizer-ci.com/ocular.phar
[[ $COVERAGE == "true" ]] && php ocular.phar code-coverage:upload --format=php-clover /tmp/coverage.clover