forked from sulu/SuluArticleBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (35 loc) · 1.2 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
sudo: false
language: php
services:
- elasticsearch
cache:
directories:
- "$HOME/.composer/cache"
matrix:
include:
- php: 5.5
env:
- SULU_VERSION="~1.4"
# - COMPOSER_FLAGS="--prefer-lowest --prefer-dist --no-interaction"
- php: 7.0
env:
# - COMPOSER_FLAGS="--prefer-dist --no-interaction"
- SULU_VERSION="~1.5@RC"
- CODE_COVERAGE="--coverage-clover=coverage.clover"
before_install:
- if [[ -z $CODE_COVERAGE ]]; then phpenv config-rm xdebug.ini ; fi
- phpenv config-add Tests/travis.php.ini
- composer self-update
install:
- travis_retry composer require sulu/sulu:$SULU_VERSION $COMPOSER_FLAGS
- composer info -i
- ./Tests/app/console doctrine:database:create
- ./Tests/app/console doctrine:schema:update --force
- ./Tests/app/console sulu:document:initialize
- ./Tests/app/console ongr:es:index:create -m default
- ./Tests/app/console ongr:es:index:create -m live
script:
- ./vendor/bin/phpunit $CODE_COVERAGE --debug
after_script:
- if [[ -n $CODE_COVERAGE ]]; then wget https://scrutinizer-ci.com/ocular.phar ; fi
- if [[ -n $CODE_COVERAGE ]]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover ; fi