forked from facile-it/doctrine-mysql-come-back
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (32 loc) · 839 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
36
37
38
39
40
language: php
sudo: false
php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
env:
- COMPOSER_FLAGS="--prefer-lowest"
- COMPOSER_FLAGS=""
matrix:
fast_finish: true
include:
- php: 7.1
env:
- TEST_COVERAGE=true
cache:
directories:
- $HOME/.composer/cache/files
before_install:
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then phpenv config-rm xdebug.ini; fi;
- composer self-update
install:
- composer update --prefer-dist --no-interaction ${COMPOSER_FLAGS}
script:
- if [[ $TEST_COVERAGE ]]; then phpdbg -qrr bin/phpunit --coverage-clover clover.xml; else bin/phpunit; fi;
after_success:
- if [[ $TEST_COVERAGE ]]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover ./clover.xml; fi
notifications:
on_success: never
on_failure: always