forked from sulu/SuluCommentBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (28 loc) · 952 Bytes
/
.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
sudo: false
language: php
cache:
directories:
- "$HOME/.composer/cache"
matrix:
include:
- php: 5.5
# env:
# - COMPOSER_FLAGS="--prefer-lowest --prefer-dist --no-interaction"
- php: 7.0
env:
# - COMPOSER_FLAGS="--prefer-dist --no-interaction"
- CODE_COVERAGE="--coverage-clover=coverage.clover"
before_install:
- phpenv config-add Tests/travis.php.ini
- composer self-update
install:
- if [[ -z $CODE_COVERAGE ]]; then phpenv config-rm xdebug.ini ; fi
- travis_retry composer update $COMPOSER_FLAGS
- composer info -i
- ./Tests/app/console doctrine:database:create
- ./Tests/app/console doctrine:schema:update --force
script:
- ./vendor/bin/phpunit $CODE_COVERAGE
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