-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
38 lines (38 loc) · 1.04 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
os: linux
dist: xenial
group: edge
services:
- mysql
addons:
apt:
packages:
- postfix
hosts:
- magento2.travis
language: php
:travis-jobs
env:
global:
- COMPOSER_BIN_DIR=~/bin
- COMPOSER_PACKAGE_NAME=:vendor/:package
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
./.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